Added intval after += to resolve TypeError
We got the error below, adding intval solved this problem.
TypeError: Unsupported operand types: int + string in _cividiscount_checkEventDiscountMultipleParticipants() (line 496 of modules/civicrm/extensions/org.civicrm.module.cividiscount/cividiscount.php).