title: How put DESC numbering before post title wordpress friendly with page navigation?
body: <p>I put a number before the post title in Wordpress and number ordering is desc.</p>
  
  <p>This code in my theme's index.php:</p>
  
  <pre><code>&lt;div id="content"&gt;
     &lt;?php if ( have_posts() ) : $post_nr = $wp_query-&gt;post_count; ?&gt;
     &lt;?php while ( have_posts() ) : the_post(); ?&gt;
          &lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;
          &lt;?php echo $post_nr--;?&gt;. Book Title: &lt;span class="title"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="&lt;?php the_title(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;. Writer: &lt;?php the_tags(' '); ?&gt;. Publisher: &lt;?php the_category(', '); ?&gt;. &lt;/span&gt;
          &lt;/div&gt;      
     &lt;?php endwhile;  ?&gt;
     &lt;?php endif;?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My problem, it's code does not function if I use page navigation. If I click page2, page3, ..., it's numbering don't show real total post.</p>
  
  <p>Any help me, please. What code should I add and placed where?</p>