add number of returned bytes to debugging output