結果 : count of each character in a string javascript