def mu(Gamma, tau):
    """Returns \# { \gamma \in \Gamma : \gamma \leq \tau \}.
    
    Given a set Gamma of integers and an integer tau in Gamma, returns the
    number of elements of Gamma that are smaller or equal to tau.
    """
    return sum(1 for x in Gamma if x <= tau)