Prepare for counting files.