Unified the data type used to count the number of documents on a stream
(uint32_t).
Added dr-sample, to randomly sample N documents from a stream using
reservoir sampling.