結果 : count each character in string javascript