counting transactions