corrected counter for backup files (now starts from zero for each file)