Nice write-up on how to convert the motor from a cordless drill to have a way to measure rotations on it. This is useful for speed control and positioning of the motor.
http://www.instructables.com/id/Cheap-and-Easy-Tachometer-RPM-Sensor-for-Brushed/?ALLSTEPS