use lua script to update total click count