Count failed jobs