in order to keep the correct gear tooth pitch (because the worm gear in the transmission remains constant) the only way to change the tooth count of a speedo gear is to reduce or enlarge the gear size appropriately.
A 34 tooth gear will be larger than a 32 tooth gear. If they kept the same diameter, the teeth pitch would change and not engage the worm gear in the transmission.
The speedo gear mount has an offset hole for the gear to go in. When installing it, have the gear as far away from the worm gear. Once inserted, turn the mount into the worm gear gently turning the gear ("wiggling" it back and forth radially) at the same time so that the teeth will engage the gear. If you do it too tight you will eat up the gear. If not tight enough, you will eat up the gear. Not engaged, you don't get a working speedo.
I'm not near my FSM but I'm sure the procedure is explained.