title: How to show Total number of pages in YUI Paginator?
body: <p>I am using <strong>YUI Paginator</strong> API for pagination and I need to show Total number of pages on screen. I saw that there is a function <em>getTotalPages()</em> in API but I am unsure about how to use it, there isn't enough documentation. Also after looking at some other documentation I tried using <em>{totalPages}</em> but didn't work.
  Can somebody help me out in this issue? Thanks in advance!!
  Below is the code snippet I am using. Please refer to template object from config:</p>
  
  <pre><code>config = {
                  rowsPerPage: 100,
  
                  template :
                      '&lt;p class="klass"&gt;' +
  
                          '&lt;label&gt;Total pages: {totalPages}&lt;/label&gt;'+
                          '&lt;label&gt;Page size: {RowsPerPageDropdown}&lt;/label&gt;'+
                      '&lt;/p&gt;',
                  rowsPerPageDropdownClass : "yui-pg-rpp-options",
                  rowsPerPageOptions  : [
                                     { value : 100 , text : "100" },
                                     { value : 250 , text : "250" },
                                     { value : 500 , text : "500" },
                                     { value : 1000 , text : "1000" },
                                     { value : tstMap[tabName].length , text : "All" }
                                  ],
              };                                                            
   var myPaginator = new YAHOO.widget.Paginator(config);
  </code></pre>