Matches the orphanedFiles counting pattern and avoids a subtle discrepancy if two dangling records shared the same filename.