added count, offset to retrieve methods
Refactor retrieval methods