title: How to count the number of rows in a database table in Django
body: <p>I have database created by Django model, where <code>status</code> and <code>id</code> and <code>username</code> are the fields of the table <code>Messages</code>.</p>
  
  <p>I need to count the number of rows where <code>status value= 0</code> for a particular <code>username</code>.</p>
  
  <p>This is my incomplete code:</p>
  
  <pre><code>Message_me = Messages.objects.get(username='myname')
  </code></pre>