def count_loc(df, featcol, featname, countcol):
    """ Count the integrations mapped to a given feature
    featcol: column name where the feature is given
    featname: name of the feature (UP, DOWN, ...)
    countcol: column name to count
    """
    df['SSP'] = 1
    df = df[df[featcol].isin(featname)][countcol].sum() if featcol else df[countcol].sum()
    return df