add connectResets after add and gather clocks in Counter.scala for correct verilog code of counter wrappers