input: Write a function to count the frequency of words in a list.
  assert count_word_frequency(["hello", "world", "hello", "foo", "bar", "hello"]) == {"hello": 3, "world": 1, "foo": 1, "bar": 1}
  assert count_word_frequency(["apple", "banana", "apple", "orange", "banana", "banana"]) == {"apple": 2, "banana": 3, "orange": 1}
  assert count_word_frequency(["a", "b", "a", "a", "b", "c"]) == {"a": 3, "b": 2, "c": 1}
output: def count_word_frequency(words):
      frequency = {}
      for word in words:
          if word in frequency:
              frequency[word] += 1
          else:
              frequency[word] = 1
      return frequency