input: Write a python function to count the number of words in a sentence.
  assert count_words("This is a test sentence.") == 5
  assert count_words("Another sentence with more words.") == 5
  assert count_words("One.") == 1
output: def count_words(sentence):
      return len(sentence.split())