Add statistics template
Adapt template to Jinja