Finished function for counting the total value of the cards in a given
hand.