To calculate how many pages, and generate an array to iterate over:
Variables:
In your case, totalrecords would get replaced by the count from the web activity you showed me.
@{activity('web1').output.response.count}
The perpage would be 500, as that is the default in documentation. Or whatever you choose it to be.
Make page array:
@Rover (0,div(int(variables('totalrecords')),int(variables('perpage'))))
number of pages = totalrecords / perpage. This makes that many elements in an array.
Iterate over pagearray to keep track of how many times: