added countByChars option for length validator