i like to view the number of referrals of a user on his profile page.

for that i think i can use the display suite with a code field.
because i am not a coder, i don't know how to write the sql request. i was hoping there could be a token, but it wasn't.

it would be great if someone could help me to get the total count of a users referrals.