code: def collect(self):
          
  
          content = self._load()
          result = dict((self.STATE[num], 0) for num in self.STATE)
  
          for line in content:
              line_array = self._remove_empty(line.split(' '))
              state = self.STATE[line_array[3]]
  
              result[state] += 1
  
          for state in result:
              self.publish(state, result[state])
docs: Overrides the Collector.collect method