PERL-406 Allow count methods to work with query hints