Sponsored
Use these hints if you're stuck. Try solving on your own first.
Process each sentence separately and count the number of words by looking for the number of space characters in the sentence and adding it by 1.
Solve with full IDE support and test cases