I do not think you need counting here. Just change the title as "Pass" after step 9 finished, any error in the steps will cause title as "Failed".