Counting stepps

hmm - home limit switch sounds like a fun way to run, have you seen any coding to point me twards ?
Also the torque is low - due to the fact that in running it VIA gear reduction.