select count(*) as n from contrasenas where usuario='{usuario2}' and estado=1 and id!={id}