How do I find the number of rows processed inside a pl/sql block? I want to commit the transaction only if the number of rows deleted = rows inserted into another table.

Thanks in advance.