Count written bytes in outputs