public SingleThreadAction(Counter counter)
 {
     this.counter = counter;
 }