If all you did was change the tranny, then all you need to do is look at what gear was used in the old tranny (assuming it was correct to begin with) and change your current tranny gear accordingly.
To figure out what the number of teeth on the output shaft worm, just look at the end of it and count the number of times the teeth intersect the face of it.


I.I. #3174