<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def count_exceptions(self, c, broker):
 """ Count exceptions as processing proceeds """

        if c in broker.exceptions:
            self.counts['exception'] += len(broker.exceptions[c])
        return self