protected void countColumn(Cell cell) throws IOException {
    currentSize += cell.serializedSize(metadata.comparator, TypeSizes.NATIVE);

    // We don't want to sync in writeRow() only as this might blow up the bufferSize for wide rows.
    if (currentSize > bufferSize) replaceColumnFamily();
  }