Message

foo contains more than ten bar elements

Explanation

A maximum of ten occurrences of the specified element is allowed in this context.

Solution

Reduce the number of elements.

Not clear? Disagree?

You might be able to find help in one of these fine resources.