Retrieves the number of objects that violate constraints.
An integer value that contains the number of invalid objects.