The number of coins earned is given by:

Income = Coin Collection x Base Coin Value

where the base coin value is determined by the coin type.

The Coin Collection stat, together with Agility, determines the quality of a pet.

*Note that the Coin Collection stat was removed in Update 10.