added the count-offset-sort retrieval pattern to location