Number of solutions to equations challenge