How to attach a potentiometer to a servo motor shaft

Side question. Will an arduino actually hold this much information?