Added functions to count the number of cards of each rank and the number of cards of each suit.