MB-12744 fix: ensure updates and inserts counts get incremented
correctly