input: Write a function to count the total number of words in a list of strings.
  assert count_words(["Hello World", "Foo Bar", "Hello Again"]) == 6
  assert count_words(["One", "Two", "Three Four", "Five Six Seven"]) == 7
  assert count_words(["Python is fun", "I love coding", "Test cases are important"]) == 9
output: def count_words(strings):
      return sum(len(s.split()) for s in strings)