Fix issue with return count of deleted objects.