When you execute a count query from the tool editor and it’s underlying query is returning > 10000 records you get the prompt warning:
The SOQL query would return 10022 rows which is more than the configured maximum result set size of 5000.
This can result in slow query result transfer and processing times. Would you still like to execute it?
which is incorrect.