geopackage-sdk/src/main/java/mil/nga/geopackage/features/index/FeatureIndexManager.java
public long count() {
        long count = 0;
        switch (getIndexedType()) {
            case GEOPACKAGE:
                count = featureTableIndex.count();
                break;
            case METADATA:
                count = featureIndexer.count();
                break;
            case RTREE:
                count = rTreeIndexTableDao.count();
                break;
            default:
                count = manualFeatureQuery.countWithGeometries();
        }
        return count;
    }
public long count() {
        long count = 0;
        switch (getIndexedType()) {
            case GEOPACKAGE:
                count = featureTableIndex.count();
                break;
            case METADATA:
                count = featureIndexer.count();
                break;
            case RTREE:
                count = rTreeIndexTableDao.count();
                break;
            default:
                count = manualFeatureQuery.countWithGeometries();
        }
        return count;
    }
Query for all feature index count

@return count