foo must be a non-negative integer
This value must be an integer greater than or equal to zero. It can not be negative, or a decimal, or a fraction, or a string, or blank.
Make the specified value a positive integer, or zero.
Not clear? Disagree?
You might be able to find help in one of these fine resources.