Find the number of solutions