結果 : javascript count occurrence of character in string