I would imagine that there's a rotation sensor in there that works a lot like those rotation counters you see on semi-trailers sometimes. Basically, a heavy weight on the bottom of a pivot so that it knows which way up is. Combine that with an optical sensor and a pulse generator, one pulse for each rotation, and the fact that it won't work at very low speeds anyway, and I think you've got a viable solution.
_________________________
Bitt Faulk