FluentDOM\Query\Data::count PHP Method

count() public method

countable Interface: return the number of data attributes
public count ( ) : integer
return integer
    public function count()
    {
        $result = 0;
        foreach ($this->_node->attributes as $attribute) {
            if ($this->isDataProperty($attribute->name)) {
                ++$result;
            }
        }
        return $result;
    }