title: Faster Active Record Query for counting a group?
body: <p>is there a more optimized way to count my records that have been grouped by a column? I just want to count all the records; i dont know why it appears i need to add a select statement before my group method. </p>
  
  <pre><code>User.select('username').group('username').to_a.count
  </code></pre>