Moving from NodeJs from 0.12 to 8.9.3 - UDF issue

I saw another piece of code as follows on the link https://www.aerospike.com/docs/client/nodejs/usage/query/aggregate.html:

client.apply('example', 'count', function (error, result) {
  if (!error) {
    console.log(result)
  }
})

Not sure how to pass the UDF arguments.