Number of solutions to equations