input: Write a function to count the total number of words in a given text.
  assert word_total("This is a test sentence.") == 5
  assert word_total("Hello world!") == 2
  assert word_total("Python programming is fun.") == 4
output: def word_total(text):
      return len(text.split())