<PackageReference Include="NLog" Version="6.2.2" />

NLog.LayoutRenderers.CounterLayoutRenderer

A counter value (increases on each layout rendering).
public int Increment { get; set; }

Gets or sets the value for incrementing the counter for every layout rendering.

public Layout Sequence { get; set; }

Gets or sets the name of the sequence. Different named sequences can have individual values.

public long Value { get; set; }

Gets or sets the initial value of the counter.