Problem Description

Count how many words are in the string (words separated by spaces).

Input Format

One line string s.

Output Format

One integer count.

Sample Test Case

Input:
many spaces here
Output:
3

Constraints

|s|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next