added forloop.counter to template