If you act
as if they are all that average weight, its easy:
Take how much the whole pile weighs
Divide it by the average mass of them
ba-da-bing! you know how many there are!
we do the same thing with tiny
invisible atoms; we count by weighing!