def METHOD_NAME(cls, component_params: Dict[str, Any]) -> int:
    split_by = component_params.get("split_by", "content_type")
    metadata_values = component_params.get("metadata_values", None)
    return_remaining = component_params.get("return_remaining", False)
    # If we split list of Documents by a metadata field, number of outgoing edges might change
    if split_by != "content_type" and metadata_values is not None:
        num_edges = len(metadata_values)
    else:
        num_edges = 2
    if return_remaining:
        num_edges += 1
    return num_edges