Is there a way to capture the value of the "rows affected" message each time a query is run?

ddave