static int globalQuestionsNumber(QuizModel quiz) { return quiz.steps.fold(0, (sum, step) => sum + step.allQuestions.length); }