Problem Description

Given a line, build a WordCounter object and print how many words it has.

Input Format

One line string.

Output Format

One integer.

Sample Test Case

Input:
I like PHP a lot
Output:
5

Constraints

Total chars

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next