django equivalent of count with group by,Player.objects.values('player_type').order_by().annotate(Count('player_type'))