title: Find out how many pages of results there are from within a paginated CakePHP Controller
body: <p>I'm using CakePHP's <code>paginate</code> method within a controller. I wish to find out how many pages of results were generated. This is easy enough within the <em>view</em> (<code>$paginator-&gt;counter()</code>) but I'd like to access this information from within the <em>controller</em> itself. Any ideas?</p>