Do a linecount on the output XML

This should help catch combinatorial explosions
Merge pull request #911 from pnorman/travis_linecount

Do a linecount on the output XML