geopackage-sdk/src/main/java/mil/nga/geopackage/db/metadata/GeometryMetadataDataSource.java
public int count(long geoPackageId, String tableName, GeometryEnvelope envelope) {
        Cursor cursor = query(geoPackageId, tableName, envelope);
        int count = cursor.getCount();
        cursor.close();
        return count;
    }
public int count(long geoPackageId, String tableName, GeometryEnvelope envelope) {
        Cursor cursor = query(geoPackageId, tableName, envelope);
        int count = cursor.getCount();
        cursor.close();
        return count;
    }
Query for all table geometry metadata count matching the envelope

@param geoPackageId GeoPackage id
@param tableName    table name
@param envelope     geometry envelope
@return count
@since 1.1.0