리스트의 원소 개수 셀 때
from collections import Counter
from collections import Counter
temp_list = [1, 3, 2, 5, 4, 5, 2, 3]
counter = Counter(temp_list) #Counter({3: 2, 2: 2, 5: 2, 1: 1, 4: 1})
print(counter.items())
#dict_items([(1, 1), (3, 2), (2, 2), (5, 2), (4, 1)])
sorted(counter.items(), key=lambda x: x[1], reverse=True) #reverse=False
counter.most_common()
for i in counter:
print(counter[i]) // == 개수