public function _getRequiredParamsCount($paramsDef)
    {
        $result = 0;
        if ($paramsDef) {
            $result = 1;
            $commas = substr_count($paramsDef, ',');
            $equals = substr_count($paramsDef, '=');
            $result += ($commas - $equals);
        }
        return $result;
    }
public function _getRequiredParamsCount($paramsDef)
    {
        $result = 0;
        if ($paramsDef) {
            $result = 1;
            $commas = substr_count($paramsDef, ',');
            $equals = substr_count($paramsDef, '=');
            $result += ($commas - $equals);
        }
        return $result;
    }
public function _getRequiredParamsCount ( $ paramsDef ) { $ result = 0 ; if ( $ paramsDef ) { $ result = 1 ; $ commas = substr_count ( $ paramsDef , ',' ) ; $ equals = substr_count ( $ paramsDef , '=' ) ; $ result += ( $ commas - $ equals ) ; } return $ result ; }
Get count of the required parameters.

@param $paramsDef "\Type $arg1, $arg2, $arg3=null"
@return int
Get count of the required parameters .