Complete the program named CountWords below so that it reads in a line, determines the number of words in the line, and prints out that number.

For example, given the sentence "Joe jumps to grab the ball", which has six words, the program would print 6.