You can enter a counter and update it with each iteration in a loop:
set counter to 0 repeat with the_item in my_list set counter to counter + 1
or use another form of loop :
repeat with n from 1 to count of my_list -- do stuff with (item n of my_list) end repeat
source share