Restrict the number of observations to a valid, positive number.