結果 : count occurrences of characters in a string java