Do a linecount on the output XML

This should help catch combinatorial explosions