結果 : how to count frequency of elements in array using hashmap in java