Completed Text/countNumberOfWords project.

Counts the number of words in a string entered by the user and prints the result to the command line.