collections-also-counter Published at 2024-01-15 Last update over 365 days ago Licensed under CC BY-NC-SA 4.0 langspython counter to a list def occurrence(l: list): return dict(Counter(l))