The line is written as a sentence. Write a program that will determine the number of words in it. There is only one space between words in the sentence, there are no spaces at the end and at the beginning.
Sample input and output
Test number |
Input |
Output |
1 |
test |
1 |
2 |
test test |
2 |