LearnPy Hub
← Strings problems
Medium

Count Words

Read a sentence (words separated by one or more spaces) and print the number of words.

Input

One line.

Output

A count.

Sample 1

Input
the quick brown fox
Output
4

Sample 2

Input
one
Output
1
solution.py
Output appears here
Count Words · Python practice problem · LearnPy Hub