'The number of documents matched for this update.'

@property
def matched_count(self):

    self._raise_if_unacknowledged('matched_count')
    if (self.upserted_id is not None):
        return 0
    return self.__raw_result.get('n', 0)
