input: Write a python function to count the number of words in a string.
  assert count_words("Python is a powerful programming language") == 6
  assert count_words("Hello world") == 2
  assert count_words("This is a test string") == 5
output: def count_words(s: str) -> int:
      return len(s.split())