This is a simple word count validator function with option to set minimum and maximum number of allowed characters.