finish the stream count