favorite We need a little bit of your help to keep things running, click on this banner to learn more

Number of words

Number of words

There is some sentence in unknown language. You need to count the number of words in it. The letters of the alphabet in unknown language are the letters of the Latin alphabet and Arabian digits. It is guaranteed, that other symbols, except blanks and punctuation marks, are not present in sentence.


One line with a sentence in unknown language.


Print the number of words in the sentence.

Time limit 1 seconds
Memory limit 128 MiB
Input example #1
Hello, world!
Output example #1