Enable `clippy::explicit_counter_loop` (#8776)

This PR enables the
[`clippy::explicit_counter_loop`](https://rust-lang.github.io/rust-clippy/master/index.html#/explicit_counter_loop)
rule and fixes the outstanding violations.

Release Notes:

- N/A
1fa9496334Marshall Bowers committed on 3/3/2024, 4:40:22 PM· committed by GitHubparent08f9c3f
2 files changedLine totals unavailable