input: Write a function to count words in a string.
  assert count_words("Hello world") == 2
  assert count_words("This is a test string with seven words") == 7
  assert count_words("One more test") == 3
output: def count_words(s: str) -> int:
      return len(s.split())