%% You can use these special %TC: tags to ignore certain parts of the text.
%Wörter und Charaktere zählen
%Count of words

\immediate\write18{texcount -inc -sum
 main.tex > /tmp/wordcount.tex}
\newcommand\wordcount{
\verbatiminput{/tmp/wordcount.tex}}

%Count of characters

\immediate\write18{texcount -merge -sum -char
 main.tex > /tmp/charcount-main.tex}
\newcommand\charcountmain{
\verbatiminput{/tmp/charcount-main.tex}}

%Quick character count
\immediate\write18{texcount -1 -merge -sum -char
 main.tex > /tmp/quickcharcount-main.tex}
\newcommand\quickcharcountmain{
Zahl der \textbf{Zeichen} bisher: \textbf{\input{/tmp/quickcharcount-main.tex}} (ohne Leerzeichen)}

%TC:ignore
\chapter{Charaktere zählen}
Dieser Abschnitt wird vom Zähler ignoriert.\newline
\quickcharcountmain
\subsubsection{main.tex}
\charcountmain

%TC:endignore