Speedo cable replacement?

Also, I'm thinking of replacing the pinion while I got it off. Is the factory correct size 26, 27 or 32 teeth? I have the factory size 14 in wheels.

Thx