Compute some data statistics