Fix bug where STDIN bytes weren't counted