there is the special variable %_counter% that returns an ascending number sequence for each of the currently selected files.
It does not quite work like the track numbering assistant as there is no trigger to reset the counter.
use %_counter% in a format string, e.g. an action of the type "Format value".