結果 : count number of distinct elements in an array python