Count the number of words in a string, where a word is defined to be a contiguous sequence of non-space characters.
 eg: "Hello, my name is john" -> 5
add