Sign in to run tests against edge cases and save your code automatically.
Problem Description
Easy
Word Counter
Strings
Strings
Write a program that inputs a sentence and outputs the number of words in it.
You may assume the sentence is not empty, words are separated by exactly one space, and there are no spaces at the start or end of the sentence.
For example, `the quick brown fox` contains 4 words.
Example Input
the quick brown fox
Example Output
4
Success Rate:
0% (0 passed / 0 attempted)
Code
Draft auto-saved
Test Results
Click "Test Code" to evaluate your code against the tests.