/** * Counts all associated Memberships * @return int */ public function CountMemberships() { if (is_null($this->intId)) { return 0; } return Membership::CountByPersonId($this->intId); }