updated letter_counter.rb