fyi in Access (it's the only example I can think of off the top of my head that uses input masks lol) an input mask is a specific string guiding the user to input something specific into the field.
For example, say you have a student code that is an alphanumeric string of 7 characters and must be in the format abc1234 (3 letters followed by 4 digits), an input mask would be something like LLL0000 which states we must have 3 letters THEN 4 digits in this order. The digits can be 0 - 9 and the letters can be a-z or A-Z or a combination of both.
Why is it validation? Because it prevents the user from inputting something that violates an intended format. If we wanted (using the same example above) a student code to be 3 letters then 4 digits, the input mask prevents something completely different from being entered in (e.g. other way around).
I don't like this definition one bit:
The definition the textbook gave for an input mask check was checking to see if the number of characters entered was the accepted number.
I'd definitely go and have a look at Microsoft Access Input Mask guides / tutorials etc. that are around. That way, you can get a general understanding of what an input mask is, and try to apply it to whatever software/context you are looking at.