implement simple statistic collector