public byte[] toBytes() {
        final byte[] bytes = new byte[COUNTER_BYTES_SIZE];
        putLong(n,     bytes, N_OFFSET);   // Count of values
        putDouble(m2,  bytes, M2_OFFSET);  // Second moment of values that have been added
        putDouble(sum, bytes, SUM_OFFSET); // Total sum
        putDouble(min, bytes, MIN_OFFSET); // Lowest value
        putDouble(max, bytes, MAX_OFFSET); // Highest value
        return bytes;
    }
Creates the combined statistics by merging the current counter with
the specified counter that is given in the serialized form.
@param bytes The counter that must be included in this counter as represented in bytes
benchmarks/src/main/java/nl/basjes/statistics/Counter.java