To add a custom character to be considered as the word limit, choose LibreOffice - PreferencesTools - Options - LibreOffice Writer - General and add the character into the Additional separators field. By default, this field contains em dash (—) and en dash (–).