Showing number of words in a form field

Hey people, I’m limiting the amount of words that is available to put in a text field in the panel (with validate: maxWords), is there anyway to display (realtime) how many words has a user put in already into the field?

Thanks in advance!

Not out of the box. Kirby comes with a counter for the number of characters (if you set a limit on character count), but not for words.

You can make a copy of the textarea field and adapt to your needs.