結果 : count repeated elements in array java