I take it that this is for calibration of a CA. If so, simply make sure your wheel size is correct, ride a known distance, and adjust the pole count accordingly. If you have a separate speedometer you could do it using speed instead of distance. There are probably smartphone apps to measure rpm, which would also work in combination with elementary math. One of my CA's is old enough that it can't accept the high pole count of some modern motors, so I have to adjust the wheel size and pole count to numbers that aren't real for the CA to output correct speed and distance.