Counts the number of times a word is used in a body of text.