I am fetching a query data, and then depending on the recordcount which is returned in the response, calculate the number of pages needed for pagination. I could not the get the