I added example # 127 that shows one approach for tallying the number of changed rows (broken down into inserts, updates, deletes) in the current transaction. Enjoy.