/// <summary>
	    /// Initializes a new instance of the <see cref="CounterMeasure"/> class.
	    /// </summary>
	    /// <param name="logger">The logger.</param>
	    /// <param name="name">The name.</param>
	    /// <param name="counts">The counts.</param>
	    /// <param name="level">The level.</param>
	    /// <param name="template">The template.</param>
	    /// <param name="directWrite">if set to <c>true</c> then directly write to the log.</param>
        /// <param name="resolution">Number of calls to Increment or Decrement before writing an event to the log</param>
	    public CounterMeasure(ILogger logger, string name, string counts, LogEventLevel level, string template, bool directWrite = false, int resolution = 1)
        {
            _logger = logger;
            _name = name;
            _counts = counts;
            _level = level;
            _template = template;
            _directWrite = directWrite;
	        _resolution = resolution;
            _value = new AtomicLong();
            _iterations = new AtomicLong();
        }