title: Method To Find The Object That Occurs Most
body: <p>I have objects called Pins that users can post to the site. The pins have an artist attribute that belongs to them.  </p>
  
  <p>Is there a method that will find which artist name is most posted to the site? Basically I need to find the mode average of Pin.all.</p>
  
  <p>To Expand: This is a music review site. Users post reviews of albums. The posts are called Pins. Each Pin has an :album, :artist, etc. </p>
  
  <p>What I'm looking to do is list stats of the site. I have @pins.count for total pins, and @users.count for total users. I want to list which album got reviewed the most, which artist got reviewed most, etc. something like:</p>
  
  <pre><code>&lt;h4&gt;The most reviewed artist on the site: &lt;/h4&gt;&lt;%= mostReviewed %&gt;
  </code></pre>