結果 : python use dictionary to count occurrences