input: Write a python function to count the occurrences of each word in a given list and return a dictionary with words as keys and their counts as values.
  assert word_count(["cat", "dog", "bird", "cat", "dog", "ant"]) == {"cat": 2, "dog": 2, "bird": 1, "ant": 1}
  assert word_count(["apple", "banana", "apple", "apple", "banana", "cherry"]) == {"apple": 3, "banana": 2, "cherry": 1}
  assert word_count([]) == {}
output: def word_count(word_list):
      word_dict = {}
      for word in word_list:
          if word in word_dict:
              word_dict[word] += 1
          else:
              word_dict[word] = 1
      return word_dict