Let p(x)=x2+ax+b, where a and b are real numbers. Find the number of ordered pairs (a,b) such that p(a)=p(b)=1.