Implemented correct hit count and working pagination for remote search.