Function name is not very descriptive of what it does.

But in any case, is it really necessary to have this new function ? I suggest instead to use the same logic as in `account_prefs_inc.php`, i.e. count number of entries returned by current_user_get_accessible_projects()