Changed the add counter button code.