Added countLetters function to Puzzle