def count_None(seq):
    """Returns the number of `None` in a list or tuple
    
    Parameters
    ----------
    seq : list or tuple
        input sequence

    Returns
    -------
    num : integer
        number of `None` in the sequence
    """
    return sum(i is None for i in seq)