On Linux/Unix maybe "wc"? But this counts blank-separated words in the entire file. Try \usepackage{fancyhdr}, and then \thispagestyle{mypagestyle} when you want a special page style. I'm not sure how you would count how many words there are on a page. For sure you would need to modify the output routines in LaTeX, which means rewritting part of the LaTeX kernel.