結果 : count occurrences of given character in string java