Finding all occurrences of a word, getting the total count, and displaying the text of the first match.