Relocated field order counter from global to class scope.