Expose method to count rows for a criteria