src/Tokenizer/Analyzer/ArgumentsAnalyzer.php
public function countArguments(Tokens $tokens, $openParenthesis, $closeParenthesis)
    {
        return \count($this->getArguments($tokens, $openParenthesis, $closeParenthesis));
    }
public function countArguments(Tokens $tokens, $openParenthesis, $closeParenthesis)
    {
        return \count($this->getArguments($tokens, $openParenthesis, $closeParenthesis));
    }
Count amount of parameters in a function/method reference.

@param Tokens $tokens
@param int    $openParenthesis
@param int    $closeParenthesis

@return int