countFailed

Count substages that are failed (stages with failure, or failed leaf records).