"files" variable in templates and ListPages to count attached files