re-solved LetterCount to use an object with key/value pairs to practice iterating on objects