docstr: Threshold on the word frequency counts.
docstr_tok: ["Threshold","on","the","word","frequency","counts","."]
code: def min_count(self, min_count):
      """
      Threshold on the word frequency counts.
      """
      assert min_count >= 0
      init_size = len(self)
      self.id2word = {
          k: v
          for k, v in self.id2word.items()
          if self.counts[self.id2word[k]] >= min_count
          or k < 4 + SPECIAL_WORDS
      }
      self.word2id = {v: k for k, v in self.id2word.items()}
      self.counts = {
          k: v for k, v in self.counts.items() if k in self.word2id
      }
      self.check_valid()
      logger.info(
          "Minimum frequency count: %i. Dictionary size: %i -> %i (removed %i words)."
          % (min_count, init_size, len(self), init_size - len(self))
      )
  
file_path: pytext/pytext/data/xlm_dictionary.py
imports: import os
  from logging import getLogger
  import numpy
  import torch
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 9 for calling the Dictionary obj's underlying member method code with example usage: obj.min_count(min_count) without return types