original_string: public function countCustomers(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
      {
          $partial = $this->collCustomersPartial && !$this->isNew();
          if (null === $this->collCustomers || null !== $criteria || $partial) {
              if ($this->isNew() && null === $this->collCustomers) {
                  return 0;
              }
  
              if ($partial && !$criteria) {
                  return count($this->getCustomers());
              }
              $query = CustomerQuery::create(null, $criteria);
              if ($distinct) {
                  $query->distinct();
              }
  
              return $query
                  ->filterByCountry($this)
                  ->count($con);
          }
  
          return count($this->collCustomers);
      }
code: public function countCustomers(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
      {
          $partial = $this->collCustomersPartial && !$this->isNew();
          if (null === $this->collCustomers || null !== $criteria || $partial) {
              if ($this->isNew() && null === $this->collCustomers) {
                  return 0;
              }
  
              if ($partial && !$criteria) {
                  return count($this->getCustomers());
              }
              $query = CustomerQuery::create(null, $criteria);
              if ($distinct) {
                  $query->distinct();
              }
  
              return $query
                  ->filterByCountry($this)
                  ->count($con);
          }
  
          return count($this->collCustomers);
      }
code_tokens: public function countCustomers ( Criteria $ criteria = null , $ distinct = false , PropelPDO $ con = null ) { $ partial = $ this -> collCustomersPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collCustomers || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collCustomers ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getCustomers ( ) ) ; } $ query = CustomerQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByCountry ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collCustomers ) ; }
docstring: Returns the number of related Customer objects.
  
  @param Criteria $criteria
  @param boolean $distinct
  @param PropelPDO $con
  @return int             Count of related Customer objects.
  @throws PropelException
docstring_tokens: Returns the number of related Customer objects .