Refactored CountingFileManager. Restore can even restore without a
backup.properties.