Question 51429
Nails are countable things, so the most reasonable domain would be positive integers.

Real numbers include fractions, irrational numbers, and negative numbers, so the set of real numbers is broader than you need for the items you are describing (i.e. nails in a barrel).