Amount of linked records in list

Hi - hi.
Who knows,
is it possible getting tasks amount in project task list ?
Thanks/

This is for getting Related Contacts with Account. Modify as per your requirements.

$account = new Account();
$account->retrieve($_REQUEST[‘record’]);

$contacts = $account->[b]get_linked_beans/b;

foreach ( $contacts as $contact ) {
echo “{$contact->name}\n”
}