title: Keeping count within EditorTemplates
body: <p>Is there a way when using EditorTemplates (With Lists) to work out the current list index value? For example in this Editor Template</p>
  
  <pre><code>@model myModel
  
  &lt;div class="email-box"&gt;
      @Html.TextBoxFor(x=&gt;x.Email)
  &lt;/div&gt;
  </code></pre>
  
  <p>Can I work out what index in the List I am up to? </p>
  
  <p>EDIt ====</p>
  
  <p>View</p>
  
  <pre><code> @model IEnumerable&lt;myModel&gt;
  
   @Html.EditorForModel()
  </code></pre>
  
  <p>Editor Template</p>
  
  <pre><code>@model myModel
  &lt;div class="email-box" rel="@ViewBag.Index"&gt;
      @Html.TextBoxFor(x =&gt; x.Email)
  &lt;/div&gt;
  </code></pre>