original_string: 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));
          }
      }
code: 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));
          }
      }
code_tokens: 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 ) ) ; } }
docstring: Test the password for minimum number of upper case characters.
  
  @param mixed $parameter
  @param string $password
docstring_tokens: Test the password for minimum number of upper case characters .