Input the Text and Search Term: Provide the text where you want to search for the term and specify the search term.
Search for Whole Word Matches: Compare each word in the text to the search term to count only whole word matches.
Return the Count: Output the number of occurrences of the search term.