LPS-41495 Avoid use a modified query when calling the service to obtain the results (the count method modifies it)