Using Counters
The Report Counters facility allows you to specify a start number at the start of the report run and increment the number as each document is processed. The start number can either be entered at run-time as a parameter or retrieved from a data field value.
You can increment a counter based on the change of a value of a field.