The step count register MSCNT is from the IC itself and cannot detect lost steps. The StallGuard feature can be used to detect if the motor is about to lose a step, and from there it is possible to tell the IC to stop moving the stepper motor. In doing this, the motor will stop before losing any steps and so it maintains positional accuracy.