FeatureTypeInfo fti = ArcSDEAdapter.fetchSchema(typeName, null, session);
Filter filter = toFilter("INT32_COL < 5 AND BBOX(SHAPE, -180, -90, -170, -80)");
filteringQuery = new Query(typeName, filter);
ArcSDEQuery q = ArcSDEQuery.createQuery(session, ftype, filteringQuery, fti
.getFidStrategy(), new AutoCommitVersionHandler(
SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME));
int calculated;
try {
calculated = q.calculateResultCount();
} finally {