title: MySQLdb python insert row or increment count on column if exists
body: <p>I have a simple table in MySQL which looks like this:</p>
  
  <h2>> ID | username | count</h2>
  
  <p>What I want to achieve using python is:</p>
  
  <ul>
  <li>Add username to table, if does not exist, and set count to 1.</li>
  <li>Whenever the username exists, increment count by 1.</li>
  </ul>
  
  <p>What is the best approach for this using MySQLdb in python 2.7</p>
  
  <p>Of course I could do this by querying for username, then if exists update count, but maybe there is a better way of doing this.</p>
  
  <p>Thanks !</p>