Complete LetterCounter class