fix stream read count computation
3 files changed