input: Write a function to take a list of words and an integer n and return 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.
  assert frequent_words(['a', 'b', 'b', 'c', 'a', 'd', 'd', 'd'], 2)==['a', 'b', 'd']
  assert frequent_words(['a', 'b', 'c', 'd'], 2)==[]
  assert frequent_words(['a', 'a', 'a', 'a'], 4)==['a']
  assert frequent_words(['a', 'b', 'c', 'd', 'e'], 1)==['a', 'b', 'c', 'd', 'e']
  assert frequent_words([], 3)==[]
output: from collections import Counter
  
  def frequent_words(words, n):
      word_counts = Counter(words)
      return [word for word, count in word_counts.items() if count >= n]