Output valid count to file output/validated.txt