# -*- coding: utf-8 -*-
# @Time : 2020/7/26 0:43
# @Author : wangmengmeng
"""Counter,可以自动统计容器中各元素出现的次数"""
from collections import Counter

# cnt = Counter()
# c2 = Counter("hahah")
# print(c2) # Counter({'h': 3, 'a': 2})

l= [1,1,1,2]
print(sum(Counter({'a': 3, 'a': 2})))
