Set offset/counts if only given query.