code: def _UpdateCounters(self, event):
      
      self._session.parsers_counter['total'] += 1
  
      # Here we want the name of the parser or plugin not the parser chain.
      parser_name = getattr(event, 'parser', '')
      _, _, parser_name = parser_name.rpartition('/')
      if not parser_name:
        parser_name = 'N/A'
      self._session.parsers_counter[parser_name] += 1
docs: Updates the counters.
  
      Args:
        event (EventObject): event.