docs: @Override
  	public int size() {
  
  		if (allElementsInCache) {
  			return orderedCache.size();
  		} else {
  			int count = 0;
  			try (final RocksBytesIterator iterator = orderedBytesIterator()) {
  				while (iterator.hasNext()) {
  					iterator.next();
  					++count;
  				}
  			}
  			return count;
  		}
  	}