def count_ents(phrase):
    """
    Counts the number of Named Entities in a spaCy Doc/Span object.
    :param phrase: the Doc/Span object from which to remove Named Entities.
    :return: The number of Named Entities identified in the input object.
    """
    named_entities = list(phrase.ents)
    return len(named_entities)