Extra Functions

Return the number of rows and the SQl used for debugging and other
purposes