結果 : how to count occurrences in array python