public function getEntityCount(IEntity $parent = null) { return count($this->getEntityIterator($parent)); }