def METHOD_NAME(self, sd: pp.Grid) -> int:
    """Return the number of degrees of freedom associated to the method.
    In this case number of faces plus number of cells.
    Args:
        sd: grid, or a subclass.
    Returns:
        int: the number of degrees of freedom.
    """
    return sd.num_faces + sd.num_cells