decompress_data: count bytes written to the pipe