Determine the number of solutions to a system of equations in three variables