I want to count how many words my LaTeX document has in it. I can do this by going to the website for the [texcount package](http://folk.uio.no/einarro/Comp/texwordcount.html) and using the web interface there. but that's not ideal.

I'd rather have some shortcut within emacs to just return number of words in a file (or ideally number of words in file and in all files called by `\input` or `\include` within the document). I have downloaded texcount script, but I don't know what to do with it. That is, I don't know where to put the `.pl` file, and how to call it within emacs.

That is: I want a keyboard shortcut for a shell command. And I want that shell command to run texcount on the current active buffer and return the total words in the minibuffer.

I'm using Ubuntu and emacs22, if that helps...