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