How to auto-number files?

The easiest way would still be to use the track-numbering assistant.

See also this thread on the total number of files: