Returns the number of related RemoteHistoryContao objects.

@param Criteria $criteria
@param boolean $distinct
@param PropelPDO $con
@return int             Count of related RemoteHistoryContao objects.
@throws PropelException
962852
public function countRemoteHistoryContaos(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
    {
        $partial = $this->collRemoteHistoryContaosPartial && !$this->isNew();
        if (null === $this->collRemoteHistoryContaos || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collRemoteHistoryContaos) {
                return 0;
            }

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

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

        return count($this->collRemoteHistoryContaos);
    }
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);
    }
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);
    }
907307
public function countDealerFolders(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerFoldersPartial && !$this->isNew();
        if (null === $this->collDealerFolders || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collDealerFolders) {
                return 0;
            }

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

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

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

        return count($this->collDealerFolders);
    }
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);
    }
806220
public function countStructureNodeParentsRelatedByStructureNodeId(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collStructureNodeParentsRelatedByStructureNodeIdPartial && !$this->isNew();
        if (null === $this->collStructureNodeParentsRelatedByStructureNodeId || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collStructureNodeParentsRelatedByStructureNodeId) {
                return 0;
            }

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

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

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

        return count($this->collStructureNodeParentsRelatedByStructureNodeId);
    }
1217526
public static function counts($condition = null, $params = null, $distinct=false) {
        return static::dao()->count(
            $condition,
            $params,
            $distinct
        );
    }
1004546
public function countChildren(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collChildrenPartial && !$this->isNew();
        if (null === $this->collChildren || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collChildren) {
                return 0;
            }

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

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

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

        return count($this->collChildren);
    }
965685
public static function countByRequest(array $criteria = [])
    {
        if (!empty($condition = array_get($criteria, 'condition'))) {
            $params = array_get($criteria, 'params', []);

            return static::whereRaw($condition, $params)->count();
        }

        return static::count();
    }
499293
public function distinct($column, array $criteria = array(),
            $return = Table::RETURN_MODEL) {
        $this->current = self::OP_SELECT;
        $this->setExpectedResult($return, true);
        $this->targetColumns($column);
        $this->query = 'SELECT DISTINCT `' . $this->name . '`.`' . Util::camelTo_($column) . '` as ' . Util::_toCamel($column) . ' FROM `' . $this->name . '` ' . $this->joinQuery;
        $this->where($criteria);

        return $this->execute();
    }
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);
        }
    }
149864
public static function count($criteria = array())
    {
        self::processCriteriaWithType($criteria);
        $count = self::connection()->count(self::collectionName(), $criteria);
        return $count;
    }
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);
    }
1009964
public function countPersonI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collPersonI18nsPartial && !$this->isNew();
        if (null === $this->collPersonI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collPersonI18ns) {
                return 0;
            }

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

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

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

        return count($this->collPersonI18ns);
    }
1167078
public function countMxmaps(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collMxmapsPartial && !$this->isNew();
        if (null === $this->collMxmaps || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collMxmaps) {
                return 0;
            }

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

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

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

        return count($this->collMxmaps);
    }
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);
    }
1347891
public function countDealerContactInfos(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerContactInfosPartial && !$this->isNew();
        if (null === $this->collDealerContactInfos || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collDealerContactInfos) {
                return 0;
            }

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

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

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

        return count($this->collDealerContactInfos);
    }