counter programs working