public final int retainCount() {
        return references.referenceCount();
    }
<p>Returns the reference count of this resource. This typically has no value for other than single-threaded unit-
tests, as it is merely a snapshot of the counter.</p>

@return The current value of the reference counter.
jdisc_core/src/main/java/com/yahoo/jdisc/AbstractResource.java