input: Write a function to count the number of words in a sentence.
  assert word_count("Hello world") == 2
  assert word_count("This is a test sentence") == 5
  assert word_count("Python is amazing") == 3
output: def word_count(sentence):
      return len(sentence.split())