Merge "Adding update_tx_counts function."