I think what you are wanting is a SELECT COUNT() query.
I think for many queries it could be a matter of simply replacing the main SELECT fields with COUNT. But I don’t know if it would get messy with queries that had aggregates and GROUP BYs.
IMHO, a type of “results were limited to 500” would be good enough and would indicate that a separate COUNT query might be needed.
I quite often put together COUNT queries when I work up a query so I won’t be taken by surprise by a long running query. eg. from this table with mega rows join another table with mega rows join yet another table with mega rows …
In fact, I would recommend running heavy queries on a copy of the live database to avoid having the forum hang while the query runs.