make instance variable letter_counts local in scope