`#reset_counters` verifies counter names.

Closes #9724.

Raise an `ArgumentError` when the name of the counter does not
match an association name.