Hello @Bhoopathiraju Deepthi and welcome to Microsoft Q&A.
It looks like this service uses the skiptoken to do pagination. This means you do not need to count records to paginate.
Since it passes the full URL, we can make use of the AbsoluteURL pagination option of the REST type dataset. This option takes the odata.nextlink and uses that for the next call, and stops when there no nextlink is returned.
Another option, since this is OData, is to use the OData type dataset.