Individual ASN view broken when sorting by circuit count
### NetBox version

v3.2.2

### Python version

3.8

### Steps to Reproduce

1. Connect to Netbox and authenticated yourself.
2. Navigate to any kind of view that displays a link to an ASN object, and click on that link


### Expected Behavior

Display of the detail page of the selected ASN object.

### Observed Behavior

A field error exception was raised:

---
<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword 'count_circuits' into field. Choices are: account, admin_contact, asn, asns, circuits, comments, contacts, created, custom_field_data, id, journal_entries, last_updated, name, networks, noc_contact, portal_url, slug, tagged_items, tags

Python version: 3.8.10
NetBox version: 3.2.2

---

Please note that in our context unauthenticated users have a read only rights to most object types and that, strangely, **only authenticated users trigger this behaviour.**
diff --git a/netbox/ipam/views.py b/netbox/ipam/views.py
index d5c1e670e..84f6db6d5 100644
--- a/netbox/ipam/views.py
+++ b/netbox/ipam/views.py
@@ -4,7 +4,7 @@ from django.db.models.expressions import RawSQL
 from django.shortcuts import get_object_or_404, redirect, render
 from django.urls import reverse
 
-from circuits.models import Provider
+from circuits.models import Provider, Circuit
 from circuits.tables import ProviderTable
 from dcim.filtersets import InterfaceFilterSet
 from dcim.models import Interface, Site
@@ -225,7 +225,9 @@ class ASNView(generic.ObjectView):
         sites_table.configure(request)
 
         # Gather assigned Providers
-        providers = instance.providers.restrict(request.user, 'view')
+        providers = instance.providers.restrict(request.user, 'view').annotate(
+            count_circuits=count_related(Circuit, 'provider')
+        )
         providers_table = ProviderTable(providers, user=request.user)
         providers_table.configure(request)
 
['netbox/ipam/views.py']