Check max upvalue count.