code: public void addListener(CountSensor sensor)
    {
      synchronized (this) {
        if (_listeners == null)
          _listeners = new ConcurrentArrayList<CountSensor>(CountSensor.class);
        
        _listeners.add(sensor);
      }
    }
docs: Listeners