Sample a data stream