Shows num rows in PDF Report

I have a PDF report format that have select query (search criteria) from one table to shows some specific lines

But i need create one field to show numrows() line from select query

How to do this on scriptcase

Thanks

Regard,
Jaisy

Try whit that:
Create a new field num_row
bu sure you have selected in PDF layout
on script_init event define num_row = 1
onrecord event num_row=num_row +1
I hpoe this help you