I am trying to count the occurences of a words in a sentence. For example in the sentence To be, or not to be: The occurence of "to" would be 2, "be" would be 2, "or" would be 1. I just need a point in the right direction as far as logic goes. Thanks.