original_string: public function countSkills(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
      {
          $partial = $this->collSkillsPartial && !$this->isNew();
          if (null === $this->collSkills || null !== $criteria || $partial) {
              if ($this->isNew() && null === $this->collSkills) {
                  return 0;
              } else {
  
                  if ($partial && !$criteria) {
                      return count($this->getSkills());
                  }
  
                  $query = ChildSkillQuery::create(null, $criteria);
                  if ($distinct) {
                      $query->distinct();
                  }
  
                  return $query
                      ->filterByGroup($this)
                      ->count($con);
              }
          } else {
              return count($this->collSkills);
          }
      }
code: public function countSkills(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
      {
          $partial = $this->collSkillsPartial && !$this->isNew();
          if (null === $this->collSkills || null !== $criteria || $partial) {
              if ($this->isNew() && null === $this->collSkills) {
                  return 0;
              } else {
  
                  if ($partial && !$criteria) {
                      return count($this->getSkills());
                  }
  
                  $query = ChildSkillQuery::create(null, $criteria);
                  if ($distinct) {
                      $query->distinct();
                  }
  
                  return $query
                      ->filterByGroup($this)
                      ->count($con);
              }
          } else {
              return count($this->collSkills);
          }
      }
code_tokens: public function countSkills ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collSkillsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collSkills || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collSkills ) { return 0 ; } else { if ( $ partial && ! $ criteria ) { return count ( $ this -> getSkills ( ) ) ; } $ query = ChildSkillQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterByGroup ( $ this ) -> count ( $ con ) ; } } else { return count ( $ this -> collSkills ) ; } }
docstring: Gets the number of Skill objects related by a many-to-many relationship
  to the current object by way of the kk_trixionary_skill_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 Skill objects
docstring_tokens: Gets the number of Skill objects related by a many - to - many relationship to the current object by way of the kk_trixionary_skill_group cross - reference table .