I search for a package or a script, that can count the number of characters including spaces in my document. I have tried to search for it, and I have found many solutions, that should do this, but I can't get it to work. I'm using Miktex and Texmaker.
\documentclass{report} \begin{document} \input{A_File} % This is a file that can contain everything, eq. figures, equations, minpages etc. To make it simple , let 's say that it contains the following text and equation This is an example \begin{equation} 2+2=4 \text{A text} \end{equation} \end{document} So the file A_File contains 'This is an example' and 'A text' which should be counted. I now want to count the the number of characters with spaces in my document. As it can be seen there are 4 characters in 'This', 2 in 'is', 2 in 'an', 7 in 'example' and 3 spaces. Furthermore there are 5 characters in ' A text' with 1 space. This gives 24 number of characters including spaces.
The script should then display:
Total number of characters including spaces = 24.
I'm not so good at latex, so I just want a script I can copy and insert, and then it works.

texcount, an external (perl?) script. It's easy to run it under Linux/MacOS, but windows?perlis a powerful scripting language and the perl binaries must be installed of course to run other perl scripts. I don't know whethertexcountis shipped with MikTeX at all, I don't use that stuffx<space><space><space><space><space>x" ? One or five? And how many spaces are "x\hspace{5em}x"? And how to now if the space in "this<space>space" will be lost in the pdf, due to a linebreak?