issue #21229: ignore maxresults for count queries