The option that would NOT need a continuous data constraint is "number of books on the shelf."
This measurement is discrete, as it can only take on whole numbers (you can't have a fractional part of a book). The other options (measure of time, amount of speed, and distance) are typically considered continuous data, as they can take on any value within a range.