calculate size based on bytes processed rather than bytes on disk

in support of reading from stdin