code: def filter_counter(self, counter, min=2, max=100000000):
          
          records_filterd = {}
          counter_all_records = 0
          for item in counter:
              counter_all_records += 1
              if max > counter[item] >= min:
                  records_filterd[item] = counter[item]
  
          self.stat['user_record_events'] = counter_all_records
          self.stat['records_filtered'] = len(records_filterd)
          return records_filterd
docs: Filter the counted records.
  
          Returns: List with record numbers.