Added functionality to check how many failed builds happened since last success build