Recover the number of steps