Fix off-by-one error in TOTAL_OPS - thanks @ckolbeck