monitoring: Add a counter to ensure that we always iterate object attributes in the order they were declared.