You can use `len(Friend.objects.friends(user))` here. Note that `Friend.objects.friends` already implements caching.