Sql Count Number Of Rows Returned By Query Database