結果 : count repeated elements in an array in java using hashmap