For a text file, there is no way for the file to know what it's page count is. It would be dependent on the settings of the program that you used to open the file. What does that program use for a default font? What size is the default font? What size are the default borders? None of his is stored in the text file so there is no way to get it from the text file itself. You could open each file with word, then you should be able to get a page count but it would be pretty slow.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]