Add `CountingInputStream`, related tests