結果 : count distinct elements in array java