def count_correl_above(correl_mat,limit):
    
    """
    count numbers of correlation matrix elements above a certain threshold

    Args:
        correl_mat (array): Matrix correlation values
        limit: Threshold for counting

    Returns: 
        (float): Percentage of correlations above the limit

    """ 
    
    correl_list = correl_mat.flatten()
    
    full_len = len(correl_list)
    
    
    above_len = len([p for p in correl_list if p>limit])
    
    
    return float(above_len)/float(full_len)*100