pythonで リストに含む要素数、要素ごとに数えるよ Counter Python

# リストに含む要素数、要素ごとに数えるよ Counter
import collections
counter = collections.Counter(data)
print( dict(counter) )