ScanArchive: Correctly initialize the file counter to zero.