In the past, we had the requirement to force the user to add exactly one document. Of course, this can be done with validation rules.
However, it would be perfect, if after reaching the maximum amount of attachments, the buttons to add new documents would be disabled. Just how it is already implemented for a dictionary template element.