title: How do I check the record count after filtering with fat free framework?
body: <p>I am using fatfree framework with the cortex ORM plugin. I am trying to get the number of records matching a specific criteria. My code:</p>
  
  <pre><code>$group_qry = new \models\system\UserGroup;
  $group_qry-&gt;load(array('type=?',$name));
  echo $group_qry-&gt;count(); //always returns 3, i.e total number of records in table
  </code></pre>
  
  <p>Initially I was thinking that this maybe because the filtering wasn't working and it always fetched everything, but that is not the case, cause I verified it with</p>
  
  <pre><code>while(!$group_qry-&gt;dry()){
      echo '&lt;br/&gt;'.$group_qry-&gt;type;
      $group_qry-&gt;next();
  }
  </code></pre>
  
  <p>So how do I get the number of records actually loaded after filtering?</p>