original_string: public function countCustomerGroupI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
      {
          $partial = $this->collCustomerGroupI18nsPartial && !$this->isNew();
          if (null === $this->collCustomerGroupI18ns || null !== $criteria || $partial) {
              if ($this->isNew() && null === $this->collCustomerGroupI18ns) {
                  return 0;
              }
  
              if ($partial && !$criteria) {
                  return count($this->getCustomerGroupI18ns());
              }
  
              $query = ChildCustomerGroupI18nQuery::create(null, $criteria);
              if ($distinct) {
                  $query->distinct();
              }
  
              return $query
                  ->filterByCustomerGroup($this)
                  ->count($con);
          }
  
          return count($this->collCustomerGroupI18ns);
      }
code: public function countCustomerGroupI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
      {
          $partial = $this->collCustomerGroupI18nsPartial && !$this->isNew();
          if (null === $this->collCustomerGroupI18ns || null !== $criteria || $partial) {
              if ($this->isNew() && null === $this->collCustomerGroupI18ns) {
                  return 0;
              }
  
              if ($partial && !$criteria) {
                  return count($this->getCustomerGroupI18ns());
              }
  
              $query = ChildCustomerGroupI18nQuery::create(null, $criteria);
              if ($distinct) {
                  $query->distinct();
              }
  
              return $query
                  ->filterByCustomerGroup($this)
                  ->count($con);
          }
  
          return count($this->collCustomerGroupI18ns);
      }
code_tokens: public function countCustomerGroupI18ns ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collCustomerGroupI18nsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collCustomerGroupI18ns || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collCustomerGroupI18ns ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getCustomerGroupI18ns ( ) ) ; } $ query = ChildCustomerGroupI18nQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByCustomerGroup ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collCustomerGroupI18ns ) ; }
docstring: Returns the number of related CustomerGroupI18n objects.
  
  @param      Criteria $criteria
  @param      boolean $distinct
  @param      ConnectionInterface $con
  @return int             Count of related CustomerGroupI18n objects.
  @throws PropelException
docstring_tokens: Returns the number of related CustomerGroupI18n objects .