Warn counter reseting and not updating - C#