The number of values of the pair (a, b) for which a(x+1)2+b(x2−3x−2)+x+1=0 is an identity in x is