Return a duplex stream with the counter as the readable side.