title: Rails 3 and will_paginate - elegant way, how to get total_pages
body: <p>I am working with will_paginate plugin in Rails 3 and I am trying to get to some variable the count of pages (total_pages).</p>
  
  <p>I thought the total pages is in globally variable <strong>@total_pages</strong>, or in @option[:total_pages]**, but if I will use this variables in my view, so it don't work.</p>
  
  <p>I know, I can get the total pages of my items in DB table separately by this plugin, but couldn't be so elegant, if I will have that value already stored in some variable by plugin...</p>
  
  <p>So I would like to ask you - exist any way, how to get this value throw <strong>will_paginate</strong> plugin?</p>