Message
foo
must be a non-negative integer
Explanation
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.
Solution
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.