Work out file numbers automatically