countJudgments method

int countJudgments()

Count all the judgments received by the proposal, across all grades.

Implementation

int countJudgments() {
  return gradesTallies
      .reduce((total, gradeJudgments) => total + gradeJudgments);
}