def METHOD_NAME(model: torch.nn.Module) -> int:
    r"""Returns the number of hops the :obj:`model` is aggregating
    information from.
    """
    num_hops = 0
    for module in model.modules():
        if isinstance(module, MessagePassing):
            num_hops += 1
    return num_hops