added ability to get running counts