currentCounter = new SynchronizedCounter();
  public Barrier () {    counters = new SynchronizedCounter[NUM_COUNTERS];    for (int i=0; i<NUM_COUNTERS; i++)      counters[i] = new SynchronizedCounter();  }