title: DBIx::Class:ResultSet get size
body: <p>I'm using <a href="https://metacpan.org/module/DBIx::Class::ResultSet#search" rel="nofollow">DBIx::Class</a> to retrieve results like so:</p>
  
  <pre><code>my $users = $c-&gt;model('DB::User')-&gt;search(
      { active_yn =&gt; 'y', client_yn =&gt; 'n' },
      {   
          columns =&gt; [qw/id first_name last_name username email/],
          order_by =&gt; ['last_name'],
          page     =&gt; ($c-&gt;req-&gt;param('page') || 1), 
          rows     =&gt; 20, 
      }   
  ); 
  </code></pre>
  
  <p>However, once I get the results I want to know how many have been returned, but I can not seem to find a method provided that tells me this. Does anyone know how to get the count of <code>$users</code> after executing this query? Thanks!</p>