add: num_transactions
add: test for num_transactions