Return number of bytes copied