Any way to capture the datarecord number from an extractor pattern?

Sorry for the 2nd post of the day - also probably a dumb question...

I have an extractor pattern on a 1st webpage that triggers a scrape of a 2nd webpage. One of the parameters I have to supply to the 2nd webpage is a record number that is supposed to increase for each new record.

While I know I could create a counter in Java, I noticed that when I run my scrape on the 1st webpage, the log shows me the number of the datarecord for each extractor pattern match. (i.e., General Extractor Pattern--DataRecord 7: ..., General Extractor Pattern--DataRecord 8: ...). Since this datarecord value iterates, I was wondering if there's an easy way to capture/use it so I could supply it as the needed parameters for the 2nd webpage?

Thanks again for any help you can provide and have a great day!

Regards,
Justin