There is a script called “PaginationProgress.jsx” which you can place in the Data Sources “Scripts” folder. This is passed script arguments:
“datasource” : The Data Source Name
“stepindex” : Current Step Index
“stepcount” : Total Number of Steps
“step message” : Related Message
You can access them like this:
var stepCount = Number(app.scriptArgs.getValue(“stepcount”));