"Count All Results" query

Generates a platform-specific query string that counts all records
returned by an Query Builder query.

@param boolean $reset
@param boolean $test  The reset clause

@return integer|string when $test = true