input: Write a python function to count the number of words in a given sentence.
  assert word_count("Hello World. This is a sentence.") == 6
  assert word_count("Python is fun") == 3
  assert word_count("Count the number of words in this sentence") == 7
output: def word_count(sentence):
      return len(sentence.split())