結果 : count words in a string javascript