compute some statistical data.