If maxLength is set to this value, only the "current input length" part of the character counter is shown.
static const int noMaxLength = -1;