title: Need help in finding the count of an unique group of entries in django models
body: <p>I have 3 models Customer, Services and Uses. The Uses model contains the customer_id and service_id(service) used by the customer.</p>
  <p>Now what I want is a list of count on the number of times each different service being used by the customer. For example if services say pool and buffet is being used once and twice i want the answer to be [1,2]. I don't want the count on distinct services used rather i want the count on each particular service.</p>
  <p>Here are my models</p>
  <pre><code>class Customer(models.Model):
      firstname = models.CharField(max_length=15)
      lastname = models.CharField(max_length=15)
      #other attributes
  
  class Services(models.Model):
      service_name = models.CharField(max_length=15)
      price = models.IntegerField()
  
  class Uses(models.Model):
      customer = models.ForeignKey(Customer,on_delete=CASCADE)
      service_id = models.ForeignKey(Services,on_delete=CASCADE)
      time_used = models.TimeField(default=timezone.localtime())
  
  </code></pre>
  <p>This is what I have got which returns the distinct services used.</p>
  <p><code>count=Uses.objects.filter(customer_id=customer).values('customer_id','service_id').distinct().count()</code></p>
  <p>Need some help please to modify it.</p>