The bean analogy is simply the basis of Peano's axioms, in intuitive (but accurate) terms. "zero" is an empty pot, etc.

The correspondence between 2 of anything is quite natural. If one cave man asked another how many arrows he had, if he put two beans in a pot I think the other would understand. That is 2.