title: Counting frequency of objects
body: <p>I would like to find the frequency of an item's price, for instance sugar.</p>
  
  <p>Sugar will have different prices for example price of an item like sugar: 100,120,100,130,100,140.</p>
  
  <p>How do I do that in my django view?</p>
  
  <p>Below is my model: </p>
  
  <pre><code>class Costs(models.Model):
      itemname = models.CharField(max_length=200)
      unitcost = models.IntegerField()
      weight = models.IntegerField(default = 1)
      dateprovided = models.DateTimeField(default = timezone.now)
      location = models.CharField(max_length=200)
      retailer = models.CharField(max_length=200, default='Nakumatt')
  
      def __unicode__(self):
          return self.itemname
  </code></pre>