Okay.. found the code

but it didn't work

The Referrals: # shows up in my postbit but it's not logging the $referrals number.
Code:
} else {
$post[pmlink] = "";
}
// Get referrals
if ($usereferrer) {
$refcount = $DB_site->query_first("SELECT count(*) AS count
FROM user
WHERE referrerid = '$post[userid]'");
$referrals = $refcount[count];
}
eval("\$post[profile] = \"".gettemplate("postbit_profile")."\";");
eval("\$post[search] = \"".gettemplate("postbit_search")."\";");
eval("\$post[buddy] = \"".gettemplate("postbit_buddy")."\";");
Code:
<smallfont>Registered: $post[joindate]<br>
Location: $post[field3]<br>
Posts: $post[posts]<br>
Total Referrals:#$referrals<br><br>
Certifications: <br>$badge $badge2 $badge3<br>
$onlinestatus</smallfont></td>
<td bgcolor="$post[backcolor]" width="100%"