from collections import Counter
import datetime
lst1 = ["a", "b", "c"]
lst2 = ["d", "a" "d", "e", "a", "f", "a", "d", "b", "b", "c", "a", "b", "k", "e", "a", "c", "c", "b"]
time_start = datetime.datetime.now()
for k,v in {key: lst2.count(key) for key in lst1}.items():
print("{}: {}".format(k,v))
print('Время2: ', datetime.datetime.now()-time_start)
time_start = datetime.datetime.now()
for k, v in Counter(lst2).items():
if k in lst1:
print(f"{k}: {v}")
print('Время: ', datetime.datetime.now()-time_start)