title: Wordpress loop - how to count items
body: <p>Is there a way to get a number of items within Wordpress loop code:</p>
  
  <pre><code>&lt;?php while (have_posts()) : the_post(); ?&gt;
  </code></pre>
  
  <p>This loop lists the posts. <strike>I need to add certain classes to first 3 depending on the total number of them.</strike></p>