add number of files to output file