def street_segment_count(Gu: nx.MultiGraph) -> int:
    """
    Count the street segments in a graph.

    Parameters
    ----------
    Gu
        Undirected input graph.

    Returns
    -------
    count
        Count of street segments in graph.
    """
    if nx.is_directed(Gu):  # pragma: no cover
        msg = "`Gu` must be undirected."
        raise ValueError(msg)
    return len(Gu.edges)

    Count the street segments in a graph.

    Parameters
    ----------
    Gu
        Undirected input graph.

    Returns
    -------
    count
        Count of street segments in graph.
    
osmnx/stats.py