code: public long queryIndexedFeaturesCount(BoundingBox webMercatorBoundingBox) {
  
  		// Create an expanded bounding box to handle features outside the tile
  		// that overlap
  		BoundingBox expandedQueryBoundingBox = expandBoundingBox(webMercatorBoundingBox);
  
  		// Query for the count of geometries matching the bounds in the index
  		long count = featureIndex.count(expandedQueryBoundingBox,
  				WEB_MERCATOR_PROJECTION);
  
  		return count;
  	}
docs: Query for feature result count in the bounding box
  
  @param webMercatorBoundingBox
  web mercator bounding box
  @return count