Numărarea numărului de apariții ale fiecărui element dintr-o listă cu Python’s Counter https://ro.from-locals.com/python-collections-counter/