Check if the elements count is in the range of `minOccurs` and `maxOccurs` and throw error if not
Check if the elements count is in the range of
minOccursandmaxOccursand throw error if not