javascript count repeated characters in string