Added histogram generation to TableStatistics.