def deleted_count(self):
        """The number of documents deleted."""
        if isinstance(self.raw_result, list):
            return len(self.raw_result)
        else:
            return self.raw_result