input: Write a python function to count the number of words in a given text.
  assert count_words("Today it is a beautiful day.") == 6
  assert count_words("The quick brown fox jumps over the lazy dog.") == 9
  assert count_words("Hello world!") == 2
output: def count_words(text):
      words = text.split()
      return words.length()