Scripting Query for returning cases where array size is larger than X

yes, a fully reproducible example, including index creation, mapping, document indexing and the query. Also, the Elasticsearch version you are using.

Thanks!