Adds up the total
By Andrew Newman @AndNewmanGeo. Find out more at https://github.com/andjnewman/totaliser