Returns the number of related FeatureTypeI18n objects.

@param      Criteria $criteria
@param      boolean $distinct
@param      ConnectionInterface $con
@return int             Count of related FeatureTypeI18n objects.
@throws PropelException
964230
public function countFeatureTypeI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collFeatureTypeI18nsPartial && !$this->isNew();
        if (null === $this->collFeatureTypeI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collFeatureTypeI18ns) {
                return 0;
            }

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

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

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

        return count($this->collFeatureTypeI18ns);
    }
1256920
public function countAttributeTypeAvMetas(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collAttributeTypeAvMetasPartial && !$this->isNew();
        if (null === $this->collAttributeTypeAvMetas || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collAttributeTypeAvMetas) {
                return 0;
            }

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

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

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

        return count($this->collAttributeTypeAvMetas);
    }
114006
public function countDealerContactInfoI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerContactInfoI18nsPartial && !$this->isNew();
        if (null === $this->collDealerContactInfoI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collDealerContactInfoI18ns) {
                return 0;
            }

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

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

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

        return count($this->collDealerContactInfoI18ns);
    }
849976
public function countVideos(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collVideosPartial && !$this->isNew();
        if (null === $this->collVideos || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collVideos) {
                return 0;
            }

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

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

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

        return count($this->collVideos);
    }
34634
public function countSkillGroups(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collSkillGroupsPartial && !$this->isNew();
        if (null === $this->collSkillGroups || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collSkillGroups) {
                return 0;
            }

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

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

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

        return count($this->collSkillGroups);
    }
1128340
public function getBranch(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        return ChildCategoryQuery::create(null, $criteria)
            ->branchOf($this)
            ->orderByBranch()
            ->find($con);
    }
982704
public function countSkillsRelatedByEndPositionId(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collSkillsRelatedByEndPositionIdPartial && !$this->isNew();
        if (null === $this->collSkillsRelatedByEndPositionId || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collSkillsRelatedByEndPositionId) {
                return 0;
            }

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

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

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

        return count($this->collSkillsRelatedByEndPositionId);
    }
521885
protected function loadCount(IRowCriteria $criteria = null) : int
    {
        if ($criteria) {
            return $this->objectSource->countMatching($this->criteriaMapper->mapCriteria($criteria));
        } else {
            return $this->objectSource->count();
        }
    }
366177
public static function distinct( $key , $criteria = array() )
    {

        self::processCriteriaWithType($criteria);
        $query = array('distinct'=>self::collectionName() , 'key' => $key , 'query' => $criteria);
        return self::connection()->distinct($query);

    }
939127
public function countDealerProducts(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerProductsPartial && !$this->isNew();
        if (null === $this->collDealerProducts || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collDealerProducts) {
                return 0;
            }

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

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

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

        return count($this->collDealerProducts);
    }
55373
public function countParents(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collParentsPartial && !$this->isNew();
        if (null === $this->collParents || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collParents) {
                return 0;
            }

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

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

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

        return count($this->collParents);
    }
1192337
public function countPersonFunctionLinks(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collPersonFunctionLinksPartial && !$this->isNew();
        if (null === $this->collPersonFunctionLinks || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collPersonFunctionLinks) {
                return 0;
            }

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

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

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

        return count($this->collPersonFunctionLinks);
    }
985720
public function countObjects(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collObjectsPartial && !$this->isNew();
        if (null === $this->collObjects || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collObjects) {
                return 0;
            }

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

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

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

        return count($this->collObjects);
    }
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);
    }
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);
    }
944965
public function countParts(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collPartsPartial && !$this->isNew();
        if (null === $this->collParts || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collParts) {
                return 0;
            }

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

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

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

        return count($this->collParts);
    }
855103
public function countC2Ps(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collC2PsPartial && !$this->isNew();
        if (null === $this->collC2Ps || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collC2Ps) {
                return 0;
            }

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

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

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

        return count($this->collC2Ps);
    }