Count the bytes that aren't written