Step counter for main