1👍
✅
use:
from django.db.models import Count
CrowdResult.objects.values('match', 'home_goals', 'away_goals').order_by().annotate(Count('match'), Count('home_goals'), Count('away_goals'))
Source:stackexchange.com