Encoder, how do I???

You don't have to do anything to adjust the sketch for any size encoding disc, you are counting revolutions. You only need one hole in the disc, having more gives more pulses per revolution.
I'm not sure what you are having difficulties with, you might be over thinking things.