print the number of invalid lines