src/Phpass/Strength/Adapter/Base.php
protected function _getClassCount($class)
    {
        $count = 0;
        if ($class == self::CLASS_LETTER) {
            $count = $this->_getClassCount(self::CLASS_LOWER)
                   + $this->_getClassCount(self::CLASS_UPPER);
        } else {
            if (isset ($this->_tokenCounts[$class])) {
                $count = $this->_tokenCounts[$class];
            }
        }

        return $count;
    }
protected function _getClassCount($class)
    {
        $count = 0;
        if ($class == self::CLASS_LETTER) {
            $count = $this->_getClassCount(self::CLASS_LOWER)
                   + $this->_getClassCount(self::CLASS_UPPER);
        } else {
            if (isset ($this->_tokenCounts[$class])) {
                $count = $this->_tokenCounts[$class];
            }
        }

        return $count;
    }
protected function _getClassCount ( $ class ) { $ count = 0 ; if ( $ class == self :: CLASS_LETTER ) { $ count = $ this -> _getClassCount ( self :: CLASS_LOWER ) + $ this -> _getClassCount ( self :: CLASS_UPPER ) ; } else { if ( isset ( $ this -> _tokenCounts [ $ class ] ) ) { $ count = $ this -> _tokenCounts [ $ class ] ; } } return $ count ; }
Return the number of times members of a token class appear in the string.

@param string $class
Token class to count.
@return integer
Returns the number of times members of the token class appear in the
string.
Return the number of times members of a token class appear in the string .