hey does anyone know a good way to count the number of words in a file...i posted one earlier but it doesnt work very well...

thanks