Count number of all steps; print it at the end