title: How can I count the result of an ActiveRecord .group query? Chaining .count returns a hash
body: <p>I can use the following :</p>
  
  <pre><code>User.where("zip_code = '48104'").group('users.id').count
  </code></pre>
  
  <p>To get hashes like :</p>
  
  <pre><code>{195=&gt;1, 106=&gt;1, 120=&gt;1, 227=&gt;1, 247=&gt;1, 264=&gt;1, 410=&gt;1}
  </code></pre>
  
  <p>Is there a way I can count these hashes, and just return <strong>7</strong>, instead of the above result ?</p>
  
  <p>I know this doesn't make sense in the above scenario, and I can just do it by not using the <strong>group</strong> clause. But I'm working on a more complex query, where I need to implement this. Thanks in advance.</p>