Not directly, as far as I know.
As workaround you might count the separating blanks. You could add a variable, with a calculation and the functions: normalize(), translate() and string-length().
- With normalize() you first reduce any space duplicates in sequence.
- Then you remove all blanks using translate().
- Finally you can compare the cleaned string-length() with the original string-length().
For the functions see ODK XForms Specification.
Could you provide more details for your requirement, please?
If you want to limit the number of words, you may look at the previous discussion here How do you set word limits to text answer.
