is there a way to separated a string by each word and number of occurrences?
What I am trying to do is read a text file and have it tell me every type of word that is in the file and how many times it occurs. Something like this:
“The dog went to the party, party, party.”
what I have now is below. But I have to search for every word manually. I want it to do it automatically.