title: How to return the result based on Queryset in django rest framework?
body: <p>I am writing a Django Rest API and my use case is like this:</p>
  
  <p>Here is my endpoint: <a href="http://127.0.0.1:8000/api/v1/totalclinic/slug=abc&amp;date=9-10-21" rel="nofollow noreferrer">http://127.0.0.1:8000/api/v1/totalclinic/slug=abc&amp;date=9-10-21</a></p>
  
  <p>This will return all the query result of the doctor ABC who worked on this particular date.</p>
  
  <pre><code>
  {
          "doctor_name": "ABC",
          "slug": "abc",
          "working_date": "2019-10-21T07:32:24Z",
          "clinic": "xyx",
  }
  </code></pre>
  
  <p>I am using Generic ListAPIView for this and my requirement is to count the number of clinics visited by a doctor using the result of a query set and print it.</p>
  
  <p>Is there any way to print my own count result instead of queryset result when user types <a href="http://127.0.0.1:8000/api/v1/totalclinic/slug=abc&amp;date=9-10-21" rel="nofollow noreferrer">http://127.0.0.1:8000/api/v1/totalclinic/slug=abc&amp;date=9-10-21</a>.</p>