結果 : count distinct elements in array python