Added a first implement of counting the number of coins needed for a given amount