Escape XPath query arguments
Replace sizeof with count