original_string: static public function fetchListCount( $params, $mainTranslation = false, $locale = false )
      {
          $customConds = self::fetchCustomCondsSQL( $params, $mainTranslation, $locale );
  
          if ( is_array( $params ) )
          {
              $newParams = array();
              foreach ( $params as $key => $value )
              {
                  if ( $key != 'keyword' )
                      $newParams[$key] = $value;
                  else
                      $newParams['eztags_keyword.keyword'] = $value;
              }
  
              $params = $newParams;
          }
  
          $tagsList = parent::fetchObjectList( self::definition(), array(), $params,
                                                           array(), null, false, false,
                                                           array( array( 'operation' => 'COUNT( * )',
                                                                         'name'      => 'row_count' ) ),
                                                           array( 'eztags_keyword' ), $customConds );
  
          return $tagsList[0]['row_count'];
      }
code: static public function fetchListCount( $params, $mainTranslation = false, $locale = false )
      {
          $customConds = self::fetchCustomCondsSQL( $params, $mainTranslation, $locale );
  
          if ( is_array( $params ) )
          {
              $newParams = array();
              foreach ( $params as $key => $value )
              {
                  if ( $key != 'keyword' )
                      $newParams[$key] = $value;
                  else
                      $newParams['eztags_keyword.keyword'] = $value;
              }
  
              $params = $newParams;
          }
  
          $tagsList = parent::fetchObjectList( self::definition(), array(), $params,
                                                           array(), null, false, false,
                                                           array( array( 'operation' => 'COUNT( * )',
                                                                         'name'      => 'row_count' ) ),
                                                           array( 'eztags_keyword' ), $customConds );
  
          return $tagsList[0]['row_count'];
      }
code_tokens: static public function fetchListCount ( $ params , $ mainTranslation = false , $ locale = false ) { $ customConds = self :: fetchCustomCondsSQL ( $ params , $ mainTranslation , $ locale ) ; if ( is_array ( $ params ) ) { $ newParams = array ( ) ; foreach ( $ params as $ key => $ value ) { if ( $ key != 'keyword' ) $ newParams [ $ key ] = $ value ; else $ newParams [ 'eztags_keyword.keyword' ] = $ value ; } $ params = $ newParams ; } $ tagsList = parent :: fetchObjectList ( self :: definition ( ) , array ( ) , $ params , array ( ) , null , false , false , array ( array ( 'operation' => 'COUNT( * )' , 'name' => 'row_count' ) ) , array ( 'eztags_keyword' ) , $ customConds ) ; return $ tagsList [ 0 ] [ 'row_count' ] ; }
docstring: Returns count of eZTagsObject objects for given params
  
  @static
  
  @param mixed $params
  @param bool $mainTranslation
  @param mixed $locale
  
  @return int
docstring_tokens: Returns count of eZTagsObject objects for given params