Return the number of the deleted objects in the callback