code: public AtomicCounter newCounter(
          final int typeId,
          final DirectBuffer keyBuffer,
          final int keyOffset,
          final int keyLength,
          final DirectBuffer labelBuffer,
          final int labelOffset,
          final int labelLength)
      {
          return new AtomicCounter(
              valuesBuffer,
              allocate(typeId, keyBuffer, keyOffset, keyLength, labelBuffer, labelOffset, labelLength),
              this);
      }
docs: Allocate a counter record and wrap it with a new {@link AtomicCounter} for use.
  <p>
  If the keyBuffer is null then a copy of the key is not attempted.
  
  @param typeId      for the counter.
  @param keyBuffer   containing the optional key for the counter.
  @param keyOffset   within the keyBuffer at which the key begins.
  @param keyLength   of the key in the keyBuffer.
  @param labelBuffer containing the mandatory label for the counter.
  @param labelOffset within the labelBuffer at which the label begins.
  @param labelLength of the label in the labelBuffer.
  @return the id allocated for the counter.