Returns the number of related ApiLog objects.

@param Criteria $criteria
@param boolean $distinct
@param PropelPDO $con
@return int             Count of related ApiLog objects.
@throws PropelException
516747
public function countApiLogs(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
    {
        $partial = $this->collApiLogsPartial && !$this->isNew();
        if (null === $this->collApiLogs || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collApiLogs) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getApiLogs());
            }
            $query = ApiLogQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByRemoteApp($this)
                ->count($con);
        }

        return count($this->collApiLogs);
    }
644935
public function countPersonTeamLinks(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collPersonTeamLinksPartial && !$this->isNew();
        if (null === $this->collPersonTeamLinks || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collPersonTeamLinks) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getPersonTeamLinks());
            }

            $query = ChildPersonTeamLinkQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByPerson($this)
                ->count($con);
        }

        return count($this->collPersonTeamLinks);
    }
934950
public function count($column = null, $distinct = true)
	{
		$this->add_soft_filter();
		return parent::count($column, $distinct);
	}
232731
public function countPersonFunctionI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collPersonFunctionI18nsPartial && !$this->isNew();
        if (null === $this->collPersonFunctionI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collPersonFunctionI18ns) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getPersonFunctionI18ns());
            }

            $query = ChildPersonFunctionI18nQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByPersonFunction($this)
                ->count($con);
        }

        return count($this->collPersonFunctionI18ns);
    }
839880
public function countTeamI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collTeamI18nsPartial && !$this->isNew();
        if (null === $this->collTeamI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collTeamI18ns) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getTeamI18ns());
            }

            $query = ChildTeamI18nQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByTeam($this)
                ->count($con);
        }

        return count($this->collTeamI18ns);
    }
701930
public function countChildren(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if (null === $this->collNestedSetChildren || null !== $criteria) {
            if ($this->isLeaf() || ($this->isNew() && null === $this->collNestedSetChildren)) {
                return 0;
            } else {
                return ChildCategoryQuery::create(null, $criteria)
                    ->childrenOf($this)
                    ->count($con);
            }
        } else {
            return count($this->collNestedSetChildren);
        }
    }
1173083
public function countDealerContentVersions(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerContentVersionsPartial && !$this->isNew();
        if (null === $this->collDealerContentVersions || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collDealerContentVersions) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getDealerContentVersions());
            }

            $query = ChildDealerContentVersionQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByDealerContent($this)
                ->count($con);
        }

        return count($this->collDealerContentVersions);
    }
1224162
public function countPersonImageI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collPersonImageI18nsPartial && !$this->isNew();
        if (null === $this->collPersonImageI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collPersonImageI18ns) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getPersonImageI18ns());
            }

            $query = ChildPersonImageI18nQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByPersonImage($this)
                ->count($con);
        }

        return count($this->collPersonImageI18ns);
    }
344082
public function countSmartyFilterI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collSmartyFilterI18nsPartial && !$this->isNew();
        if (null === $this->collSmartyFilterI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collSmartyFilterI18ns) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getSmartyFilterI18ns());
            }

            $query = ChildSmartyFilterI18nQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterBySmartyFilter($this)
                ->count($con);
        }

        return count($this->collSmartyFilterI18ns);
    }
149864
public static function count($criteria = array())
    {
        self::processCriteriaWithType($criteria);
        $count = self::connection()->count(self::collectionName(), $criteria);
        return $count;
    }
1232678
public function countDealerFolderVersions(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerFolderVersionsPartial && !$this->isNew();
        if (null === $this->collDealerFolderVersions || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collDealerFolderVersions) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getDealerFolderVersions());
            }

            $query = ChildDealerFolderVersionQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByDealerFolder($this)
                ->count($con);
        }

        return count($this->collDealerFolderVersions);
    }
1044512
public function countFeatureFeatureTypes(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collFeatureFeatureTypesPartial && !$this->isNew();
        if (null === $this->collFeatureFeatureTypes || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collFeatureFeatureTypes) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getFeatureFeatureTypes());
            }

            $query = ChildFeatureFeatureTypeQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByFeatureType($this)
                ->count($con);
        }

        return count($this->collFeatureFeatureTypes);
    }
502444
public function countM2Ps(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collM2PsPartial && !$this->isNew();
        if (null === $this->collM2Ps || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collM2Ps) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getM2Ps());
            }

            $query = ChildM2PQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByMedia($this)
                ->count($con);
        }

        return count($this->collM2Ps);
    }
1338507
public function countFeaturedTutorialSkills(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collFeaturedTutorialSkillsPartial && !$this->isNew();
        if (null === $this->collFeaturedTutorialSkills || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collFeaturedTutorialSkills) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getFeaturedTutorialSkills());
            }

            $query = ChildSkillQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByFeaturedTutorial($this)
                ->count($con);
        }

        return count($this->collFeaturedTutorialSkills);
    }
682953
public function countC2Ms(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collC2MsPartial && !$this->isNew();
        if (null === $this->collC2Ms || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collC2Ms) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getC2Ms());
            }

            $query = ChildC2MQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByCategory($this)
                ->count($con);
        }

        return count($this->collC2Ms);
    }
900224
public function countPositions(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collPositionsPartial && !$this->isNew();
        if (null === $this->collPositions || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collPositions) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getPositions());
            }

            $query = ChildPositionQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterBySport($this)
                ->count($con);
        }

        return count($this->collPositions);
    }
694074
public function countDealerSheduless(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerShedulessPartial && !$this->isNew();
        if (null === $this->collDealerSheduless || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collDealerSheduless) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getDealerSheduless());
            }

            $query = ChildDealerShedulesQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByDealer($this)
                ->count($con);
        }

        return count($this->collDealerSheduless);
    }