Stepper: Read position when off.

I've searched and can't find a good answer, Is it possible to write my code so that when no stepping is in progress but the rotor is manually moved, it counts how many steps it has moved so that when initialized by the code it can return to position 0?
I'm trying to do this without the use of an additional encoder or extra buttons as limit points (like on a CNC machine).

You can forget about that. The only way is with an ABSOLUTE ENCODER (NOT INCREMENTAL) and even then you need some electronics to read the values

Okay, that's what i was afraid of. I have a plethora of scrap steppers i could use for my project but no servo's and don't feel like buying any. Will see what i can get together, thanks!

add a microswitch to detect an end stop