def gf_degree(f):
    """
    Return leading degree of ``f``.

    **Examples**

    >>> from sympy.polys.galoistools import gf_degree

    >>> gf_degree([1, 1, 2, 0])
    3
    >>> gf_degree([])
    -1

    """
    return len(f)-1