結果 : character count method in java