letter counter function, correct answer.