a counter is used for obtaining totals.