title: How to count entries in XSLT?
body: <p>I am quite new to XSLT and I would like to generate a <strong>count</strong> of participants for a list of <code>events</code>. This is my XML:</p>
  
  <pre><code>&lt;events&gt;
      &lt;event name="christmas"/&gt;
      &lt;event name="halloween"/&gt;
      &lt;event name="easter"/&gt;
      &lt;event name="easter"/&gt;
  &lt;/events&gt;
  </code></pre>
  
  <p>What I need is something like this:</p>
  
  <pre><code>Christmas: 1 participant
  Halloween: 1 participant
  Easter: 2 participants
  </code></pre>
  
  <p>Can this be done with XSLT in any way?</p>
  
  <p>Thanks for any help!</p>