input: Write a function to create a program in Python that takes a list of words and an integer n and returns a list of words that appear at least n times in the given list. Use the Counter class from the collections module to count the occurrences of each word and then filter the words based on the count.
  def frequent_words(words, n):
      from collections import Counter
      counts = Counter(words)
      return [word for word, count in counts.items() if count >= n]
  assert frequent_words(['a', 'b', 'a', 'c', 'd', 'a', 'x', 'd', 'd'], 3) == ['a', 'd']
  assert frequent_words(['a', 'b', 'a', 'b', 'b'], 2) == ['a', 'b']
  assert frequent_words(['c', 'c', 'c'], 3) == ['c']
  assert frequent_words(['x', 'y', 'z'], 1) == ['x', 'y', 'z']
  assert frequent_words([], 1) == []
output: def frequent_words(words, n):
      from collections import Counter
      counts = Counter(words)
      return [word for word, count in counts.items() if count >= n]