結果 : count occurrences of elements in array python