Added total_txn counter to make performance copmarison with multiple threads easier.