title: Getting a count of objects in a queryset in django
body: <p>How can I add a field for the count of objects in a database. I have the following models:</p>
  
  <pre><code>class Item(models.Model):
      name = models.CharField()
  
  class Contest(models.Model);
      name = models.CharField()
  
  class Votes(models.Model):
      user = models.ForeignKey(User)
      item = models.ForeignKey(Item)
      contest = models.ForeignKey(Contest)
      comment = models.TextField()
  </code></pre>
  
  <p>To find the votes for contestA I am using the following query in my view</p>
  
  <pre><code>current_vote = Item.objects.filter(votes__contest=contestA)
  </code></pre>
  
  <p>This returns a queryset with all of the votes individually but I want to get the count votes for each item, anyone know how I can do that? thanks</p>