test tag and count in template.