Count Words in a Sentence

Given a sentence string s, count how many words it contains. Words are separated by spaces.

Difficulty:

Console