def css.element.count
import gralha-css-style@0.1.0.1/css.bend as Cssimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-xml-doc@0.1.0.1/xml.bend as XML
445def css.element.count(xs: List<&2, XML.Element>) -> U32:
446 match xs:
447 case Nil{}: 0
448 case Con{XML.Element{n, as, kids, txt}, rest}: (U.choose(U32, U.string.equal(n, "#text"), 0, 1) + css.element.count(rest) : U32)
449
450@unsafe