from collections import Counter
from itertools import chain
term_appearance = Counter(chain.from_iterable(l))
term_appearance
How can i count occurrence of each word in document using Dictionary comprehension