statistics to compute average, etc