Count the words in a line. Words are separated by one or more spaces; there may be leading or trailing spaces.
Input
One line of text.
Output
The number of words.
Read from standard input and write to standard output. 4 test cases in total (2 hidden). Tests for this language run inside your browser.