Added pubCount instance variable. Updates on stepperValueChanged