I have a list of words
words = ['two', 'forks.', 'one', 'knife.', 'two', 'glasses.','one',
'plate.', 'one', 'naptkin.', 'his,' 'glasses.', 'his', 'knife.']
and need to count the occcurence of words using a dictionary like so.
word_counts = {'two':2, 'one':3, 'forks.':1, 'knife.':2, \
'glasses.':2, 'plate.':1, 'naptkin.':1, 'his':2}
How would I go about doing this? Thanks for the help!