結果 : count repeated elements in array in java