private int countPermanentListeners(ZKWatcher watcher) {
    return countListeners(watcher, ZkSplitLogWorkerCoordination.class);
  }
Count listeners in zkw excluding listeners, that belongs to workers or other temporary
processes.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java