結果 : java program to count the occurrences of each number in array