結果 : how to count repeated elements in array in java