public function complexity()
    {
        $dynamicPartsCount = substr_count($this->pattern, ':') + substr_count($this->pattern, '?');

        return (substr_count($this->pattern, '/') - $dynamicPartsCount) * 100 + $dynamicPartsCount;
    }