結果 : java program to count occurrences of a word in string