How to remove speedo drive gear?

I guess I should've read this article before I replaced my speedo gear. How the hell do you clock the gear after the fact. I went from a 40 tooth gear to a 33 tooth gear for my gear change from 3.91 to 3.23.
I think that info is in factory service manuals. X number of teeth to X number of teeth go at which hash mark.