def make_stats(graph):
    """Return the stats for `graph`."""
    stats = dict(
        missing=0, installed=0, outdated=0, total=graph.number_of_nodes()
    )
    for node in graph:
        node_data = graph.node_data(node)
        stats[node_data.status] += 1
    return stats