Change methods failedJobStatisticsByType and countJobsByType, to use count before for loop
Change methods failedJobStatisticsByType and countJobsByType, to use count before for loop

activecollab/jobsqueue