I have the following list:
data_items = ['abc','123data','dataxyz','456','344','666','777','888','888', 'abc', 'xyz']
And I have a list of search items:
search = ['abc','123','xyz','456']
I want to iterate over the data_items for a match using the search list and build a basic structure that provides a count for each match. e.g.
counts = ['abc':'2', '123':'1', 'xyz':'2'.........]
What the best way to do this?