added a reset to the counter

extra feature to the counter object
reset the count with a bang to the reset inport