@Override
    public int size() {
        return entries;
    }
The number of entries put into the map (note that not all may remain)
storage/src/main/java/org/apache/kafka/storage/internals/log/SkimpyOffsetMap.java