結果 : java count repeated characters in the string