Missing math.sum function in Word Count example

In this example, a math.sum function is used, but it isn’t to be found in the lua standard, right? https://www.aerospike.com/docs/udf/examples/stream_udf_word_count.html

A better example would be to use a lambda, as in here? http://www.aerospike.com/docs/udf/api/map.html