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