title: How to get number of results from query_posts?
body: <p>I'm printing posts and I want to get number of results, how can I do that?</p>
  
  <p>This is part of my code:</p>
  
  <pre><code>if (have_posts()) : 
  
      $args = array(
          'showposts' =&gt; '5',
          'paged' =&gt; $paged
      );
  
  
      $thePosts = query_posts($args);
  ...
  </code></pre>
  
  <p>Thank's for help</p>