original_string: public function countCustomers($criteria = null, $distinct = false, ConnectionInterface $con = null)
      {
          if (null === $this->collCustomers || null !== $criteria) {
              if ($this->isNew() && null === $this->collCustomers) {
                  return 0;
              } else {
                  $query = CustomerQuery::create(null, $criteria);
                  if ($distinct) {
                      $query->distinct();
                  }
  
                  return $query
                      ->filterByCustomerGroup($this)
                      ->count($con);
              }
          } else {
              return count($this->collCustomers);
          }
      }
code: public function countCustomers($criteria = null, $distinct = false, ConnectionInterface $con = null)
      {
          if (null === $this->collCustomers || null !== $criteria) {
              if ($this->isNew() && null === $this->collCustomers) {
                  return 0;
              } else {
                  $query = CustomerQuery::create(null, $criteria);
                  if ($distinct) {
                      $query->distinct();
                  }
  
                  return $query
                      ->filterByCustomerGroup($this)
                      ->count($con);
              }
          } else {
              return count($this->collCustomers);
          }
      }
code_tokens: public function countCustomers ( $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { if ( null === $ this -> collCustomers || null !== $ criteria ) { if ( $ this -> isNew ( ) && null === $ this -> collCustomers ) { return 0 ; } else { $ query = CustomerQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByCustomerGroup ( $ this ) -> count ( $ con ) ; } } else { return count ( $ this -> collCustomers ) ; } }
docstring: Gets the number of ChildCustomer objects related by a many-to-many relationship
  to the current object by way of the customer_customer_group cross-reference table.
  
  @param      Criteria $criteria Optional query object to filter the query
  @param      boolean $distinct Set to true to force count distinct
  @param      ConnectionInterface $con Optional connection object
  
  @return int the number of related ChildCustomer objects
docstring_tokens: Gets the number of ChildCustomer objects related by a many - to - many relationship to the current object by way of the customer_customer_group cross - reference table .