'Increment the handled counter for each inbound stanza.'

def _handle_incoming(self, stanza):

    if (not self.enabled.is_set()):
        return stanza
    if isinstance(stanza, (Message, Presence, Iq)):
        with self.handled_lock:
            self.handled = ((self.handled + 1) % MAX_SEQ)
    return stanza
