title: CakePHP: how to get total number of records retrieved with pagination
body: <p>When you retrieve records using <code>$this-&gt;paginate('Modelname')</code> with some page <code>limit</code>, how do you get the total number of records retrieved? </p>
  
  <p>I'd like to display this total count on the view, but <code>count($recordsRetrieved)</code> returns the number displayed only on the current page. So, if total number of records retrieved is 99 and <code>limit</code> is set to 10, it returns 10, not the 99.</p>