PROGRAMMING:Count the number of words
Title Description
Input a line of characters and count how many words there are, separated by spaces.
###Input format:
Enter a line of characters.
###Output format:
Output the number of words.
###Input example:
For example:
Here is a set of inputs. For example:
```in
This is a C program.
```
###Output example:
The corresponding output is given here. For example:
```out
five
```
answer:If there is no answer, please comment
Input a line of characters and count how many words there are, separated by spaces.
###Input format:
Enter a line of characters.
###Output format:
Output the number of words.
###Input example:
For example:
Here is a set of inputs. For example:
```in
This is a C program.
```
###Output example:
The corresponding output is given here. For example:
```out
five
```
answer:If there is no answer, please comment