[cleanup] Since we're using the query component's count() method, there's no need for a separate query sql