結果 : javascript count occurrences of character in string