Rename i to failure_count in retry for loops.