title: How to add new counter attribute to xml nodes with C#
body: <p>I am looking how to add a new attribute <code>count</code> to xml nodes to have it as an id for further parsing.</p>
  
  <p>My XML:</p>
  
  <pre><code>&lt;objects&gt;
      &lt;object name="Ford Fuigo" type="Car"&gt;
            &lt;properties&gt;
             ...      
             &lt;/properties&gt;
      &lt;/object&gt;
      &lt;object name="Renault Clio" type="Car"&gt;
            &lt;properties&gt;
             ...      
             &lt;/properties&gt;
      &lt;/object&gt;
      &lt;object name="Evico Star" type="Bus"&gt;
            &lt;properties&gt;
             ...      
             &lt;/properties&gt;
      &lt;/object&gt;
  &lt;/objects&gt;
  </code></pre>
  
  <p>And I want to have a new attribute like this: </p>
  
  <pre><code>&lt;objects&gt;
      &lt;object count ="1" name="Ford Fuigo" type="Car"&gt;
            &lt;properties&gt;
             ...      
             &lt;/properties&gt;
      &lt;/object&gt;
      &lt;object count ="2" name="Renault Clio" type="Car"&gt;
            &lt;properties&gt;
             ...      
             &lt;/properties&gt;
      &lt;/object&gt;
      &lt;object count ="3" name="Evico Star" type="Bus"&gt;
            &lt;properties&gt;
             ...      
             &lt;/properties&gt;
      &lt;/object&gt;
  &lt;/objects&gt;
  </code></pre>