Counts combinations of coins.