public int size() {
    return referenceCache.size();
  }
Returns an estimated count of objects kept in the pool. This also counts stale references, and
you might want to call {@link #purge()} beforehand.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ObjectPool.java