The driven gear is easy to change.
Find where the speedo cable assembly goes into the tranny (driver's side, toward the rear).
Use and 11mm socket to remove the retaining bolt holding the assembly to the tranny (you may have to pull the wire harness connector off the speed sensor to get slack to pull out the cable).
Carefully pull the cable straight out of the tranny.
Look around the base of the driven gear, and locate the metal tab of the gear retaining clip. Use a small, flat screwdriver to carefully pull the clip straight out of the gear. Now you can pull the gear off the cable.
If you're careful you can use the old retaining clip, or you can buy a new one since they're pretty cheap.
With the new gear on the cable, carefully insert the cable assembly back into the tranny. It should slide in easily, but if not, try turning the speedo gear just a hair and reinserting.
Reinstall the retaining bolt, and wire connector.