protected function capsCount($parameter, $password)
    {
        $len = intval($parameter);
        $results = array();
        if ($len && (preg_match_all('/[A-Z]/', $password, $results) < $len)) {
            $this->_addError(sprintf(
                    $this->translate->plural('should contain at least one uppercase character', 'should contain at least %d uppercase characters', $len),
                    $len));
        }
    }
protected function capsCount($parameter, $password)
    {
        $len = intval($parameter);
        $results = array();
        if ($len && (preg_match_all('/[A-Z]/', $password, $results) < $len)) {
            $this->_addError(sprintf(
                    $this->translate->plural('should contain at least one uppercase character', 'should contain at least %d uppercase characters', $len),
                    $len));
        }
    }
protected function capsCount ( $ parameter , $ password ) { $ len = intval ( $ parameter ) ; $ results = array ( ) ; if ( $ len && ( preg_match_all ( '/[A-Z]/' , $ password , $ results ) < $ len ) ) { $ this -> _addError ( sprintf ( $ this -> translate -> plural ( 'should contain at least one uppercase character' , 'should contain at least %d uppercase characters' , $ len ) , $ len ) ) ; } }
Test the password for minimum number of upper case characters.

@param mixed $parameter
@param string $password
Test the password for minimum number of upper case characters .