結果 : count repeated words in string javascript