結果 : java code to count number of characters in a string