Write a program using a string class object that asks the user to enter a sentence then it determines and reports the number of words in the sentence.