Transform XML documents using XSLT. More information: https://xmlstar.sourceforge.net/docs.php.
xml transform path/to/stylesheet.xsl -p "Count='count(/xml/table/rec)'" -s Text="Count=" path/to/input.xml|URI
xml transform --help