結果 : count occurrences of number in array java using hashmap