pocount: better counting of things that looks like XML

Copied the XML re from placeables.  Probably should be sharing this re.