Complete maxOccurrences