from django.db.models import Count most_common = Post.objects.annotate(mc=Count('category')).order_by('-mc')[0].mc