Allow plugins to provide custom count queries (or remove count queries all together) for improved performance.