Generate several statisical information of a stream