function count($type_uri) { if (array_key_exists($type_uri, $this->data)) { return count($this->get($type_uri)); } else { return new Auth_OpenID_AX_Error(sprintf("Type URI %s not found in response", $type_uri)); } }