I have the a dataset of aprox 5.000 different words and 5000 lines:
Example of 2 lines
data = [["I", "am", "John"], ["Where", "is", "John","?"]]
And what I want to do is count how many different words I have of each.
result = {"I": 1, "am": 1, "John": 2, "Where":1, ...}
But have no idea how to do it efficiently
Any suggestions?