Counting Rows

Counting Rows

i have fetch rows from database but i want to set their sr # like 1 2 3 according to the number of rows. i have attached snap so that you can understand better.