The equation $x^2+ax+b=0$, where $a$ and $b$ are different, has solutions $x=a$ and $x=b$. How many such equations are there?