return number of affected objects for delete/purge operations