totals api idea

refs #78
fixes #78: stats