Word Count Function

Here is a simple function that will provide the total word count of a string of text.