結果 : javascript function to count letters in a string