put number of files into the header