input: Below is an instruction that describes a task. Write a response that appropriately completes the request.
  
  ### Instruction:
  Write a Python program that counts the number of words in a given string.
  
  ### Input:
  str = "Hello World!"
  
  ### Output:
  def count_words(str):
      return len(str.split())
  
  print(count_words("Hello World!"))
output:     
  def count_words(str):
      return len(str.split())
  