I think this is what you're looking for:
function qa_user_sub_navigation($handle, $selected, $ismyuser=false) {
$result = qa_db_select_with_pending(qa_db_user_points_selectspec($handle));
$navigation=array(
'profile' => array(
'label' => qa_lang_html_sub('profile/user_x', qa_html($handle)),
'url' => qa_path_html('user/'.$handle),
),
.... blah ....
'posts' => array(
'label' => qa_lang_html('profile/questions') . '<span class="qa-uf-user-q-posts">' . $result['qposts'] . ' Posts </span>',
'id' => 'questions',
),
);
.... blah ....