Very confused... problem using 'annotate' in Django Did you import Count from django.db.models? from django.db.models import Count