Enumerate content in custom view template
Welcome to Drupal!

Use row level templating in template suggestion and follow exactly the same markup so your code should look like the following

&lt;article id=""&gt;
    &lt;header&gt;
        &lt;h1&gt;&lt;?php print $fields['title']-&gt;content; ?&gt;&lt;/h1&gt;
    &lt;/header&gt;
    &lt;div class="content"&gt;
    &lt;/div&gt;
    &lt;footer&gt; &lt;/footer&gt;
&lt;/article&gt;


It will follow the same markup for each row.