Corrected steps counter