count all transactions in num_tx, in order to show the correct gap