Solved issue with count function by adding third variable to track number of coins..