reset method

void reset()

Implementation

void reset() {
  counter = 0;
  emit(state);
}