# Is it possible to do word counting of selected text in sharelatex?

I know we can count the words for a whole document using sharelatex. However when I select a bit of text in the code editor and go to word counting it still display the total number of words of the document instead of the selected text. Is there any way to display the word count for selected text in sharelatex?

Many thanks

The word count feature referred to in your link uses TeXcount, which is meant to be run on complete documents, not text segments. A text segment might have unbalanced curly braces or unmatched \begin-\end macros, which TeXcount would not handle well.