Solve problem "The number of words" online - Learn Python 3 - Snakify

The number of words


Given a string consisting of words separated by spaces. Determine how many words it has. To solve the problem, use the method count.

In all the problems input the data using input() and print the result using print().