Note that nAffectedRows does not work with ODBC datasource, but it does work with ADO data sources. This method will work across the board.
o.GetAffectedRows()