docs: public static int count(SegmentedAdvancedLoadWriteStore<?, ?> salws, IntSet segments) {
        Long result = Flowable.fromPublisher(salws.publishKeys(segments, null)).count().blockingGet();
        if (result > Integer.MAX_VALUE) {
           return Integer.MAX_VALUE;
        }
        return result.intValue();
     }