added count and offset to search api