Get total stats and send to template.