int getNumEvents() {
        int cnt = eventCount;
        for (Entry entry : queue) {
            cnt += entry.eventCount;
        }
        return cnt;
    }
Obtain the current number of active events. This method is
intended for testing and debugging.

@return Number of active events.
vespajlib/src/main/java/com/yahoo/concurrent/EventBarrier.java