Correction:

12 bit A/D count = 4095 when Vin = Vref