LPS-33427 Avoid counter increment if it isn't absolutely necessary