Олимпиадный тренинг

Задача 4999. How many words in a sentence


Задача

Темы: Строки Символы
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