Use the function: bp_friend_total_requests_count()
It’s in the file bp-friends-templatetags.php
Thanks a lot Roger! It worked like a charm
I knew it was simple, but I couldn’t find the right function.
@jimhellas – yes, I find myself using “find in files” a lot in my editor 
Finding time to write sections on the API in the documentation is step 2!
ok , i have a similar question, how can i use an if statement to show if a request is pending? like, this:
if (bp_is_friends() )
//then this
else if ( -this is the pending part )
// pending
else
// this
how would i do that? i bet tis waaaay more simple than im guessing lol
@murasaki – this is the code I used to show either “(3) Friends” or just “Friends” based on how many requests that users has on there profile page.
<li><a href="/members/user_login; ?>/friends">Friends</a></li>
<li><a href="/members/user_login; ?>/friends"><span style="font-weight:bold">()</span> Friends</a></li>
and you can do the same thing with Messages
<li><a href="/members/user_login; ?>/messages/inbox">Messages</a></li>
<li><a href="/members/user_login; ?>/messages/inbox"><span style="font-weight:bold">()</span> Messages</a></li>
hope this helps.