Disregard all TemplateElement nodes while counting element index