2👍
✅
You are pretty close already.
from django.db.models import Count
Tourist.objects.annotate(countries_visited=Count('country'))
does what you want, even though you are following the relationship backwards.
Source:stackexchange.com