When grouping the failed jobs by MRs, we count the number of MRs, not the number of failed jobs:
When grouping by MRs, we should still count the number of failed jobs.