Use rpmpsNumProblems() instead of directly accessing probs->numProblems