def cons_count(s, sref):
    cont = 0
    for c in s:
        if c.isalpha() and c not in 'aeiouAEIOU' and c in sref: 
            cont += 1
    return cont
