update counter for transactions