<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def n_failed(self):
 """Return the number of failed jobs"""

        return self._counters[JobStatus.failed] + self._counters[JobStatus.partial_failed]