public synchronized int size() {
        return sessions.size();
    }
Get the number of entries currently in the share session cache.
server/src/main/java/org/apache/kafka/server/share/ShareSessionCache.java