title: How do you calculate the greatest number of repetitions in a list?
body: <p>If I have a list in Python like</p>
  
  <pre><code>[1, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1, 1]
  </code></pre>
  
  <p>How do I calculate the greatest number of repeats for any element? In this case <code>2</code> is repeated a maximum of 4 times and <code>1</code> is repeated a maximum of 3 times.</p>
  
  <p>Is there a way to do this but also record the index at which the longest run began?</p>