db: Reduce pressure from status messages
Created by: efritz
The count query in this graphql request is currently the dominating query in Cloud according to query insights. Instead of doing a full aggregate of the number of repos (which can be slow for site-admins), we should check if there exists any repos matching the same conditions.
This should preserve the current behavior, but tagged @sourcegraph/repo-management to confirm.