結果 : count occurrences of element in array python