badRecordCount() {
    let count = 0;
    Harvests.find({last_bad_count: {$gt: 0} }).forEach((harvest) => {
      count += harvest.last_bad_count;
    });
    return count;
  }
/**
   * Returns the total number of bad records by summing all last_bad_count in
   * each Harvest
   *
   * @return {number}
   */
Returns the total number of bad records by summing all last_bad_count in
each Harvest

@return {number}
Returns the total number of bad records by summing all last_bad_count in each Harvest @return { number }
badRecordCount() {
    let count = 0;
    Harvests.find({last_bad_count: {$gt: 0} }).forEach((harvest) => {
      count += harvest.last_bad_count;
    });
    return count;
  }
badRecordCount ( ) { let count = 0 ; Harvests . find ( { last_bad_count : { $gt : 0 } } ) . forEach ( ( harvest ) => { count += harvest . last_bad_count ; } ) ; return count ; }
Returns the total number of bad records by summing all last_bad_count in
 each Harvest
Returns the total number of bad records by summing all last_bad_count in each Harvest