count_words(s) that returns the number of words in s, where words are separated by any amount of whitespace (spaces, tabs, or multiple spaces in a row).s = ' Hello world '
2
Leading/trailing and repeated whitespace are ignored.
s = ''
0
An empty or whitespace-only string has zero words.
`s.split()` with no arguments already handles arbitrary whitespace runs and empty strings.