public function count() { $result = 0; foreach ($this->_node->attributes as $attribute) { if ($this->isDataProperty($attribute->name)) { ++$result; } } return $result; }