title: Use of key, and .count in max function in Python
body: <p>What is use of &quot;key&quot; in Python max function used on a list?</p>
  <pre class="lang-py prettyprint-override"><code>lst = [1, 2, 7, 67, 2, 45, 6732, 52, 5, 3, 2, 4, 2]
  print(max(lst,key=lst.count))
  </code></pre>
  <p>And, also what does lst.count does?</p>