/// <summary>
        /// Increments the count at the given index. Will also increment the <see cref="HistogramBase.TotalCount"/>.
        /// </summary>
        /// <param name="index">The index to increment the count at.</param>
        protected override void IncrementCountAtIndex(int index)
        {
            long criticalValue = _wrp.WriterCriticalSectionEnter();

            try
            {
                _counts.IncrementAndGet(index);
                Interlocked.Increment(ref _totalCount);
            }
            finally
            {
                _wrp.WriterCriticalSectionExit(criticalValue);
            }
        }