grouping coin type and number of coins