Django equivalent of COUNT with GROUP BY,Player.objects.values('player_type').order_by().annotate(Count('player_type'))