sprockets/src/main/java/net/sf/sprockets/content/Content.java
public static int getCount(Context context, Uri uri) {
        String[] proj = {"COUNT(*)"};
        return Cursors.firstInt(context.getContentResolver().query(uri, proj, null, null, null));
    }
public static int getCount(Context context, Uri uri) {
        String[] proj = {"COUNT(*)"};
        return Cursors.firstInt(context.getContentResolver().query(uri, proj, null, null, null));
    }
Get the number of rows at the URI.

@return {@link Integer#MIN_VALUE} if the URI could not be queried
@since 2.3.0