public int size() {
        return elements.size();
    }
Returns the number of elements in the array node.

@return Returns the number of elements in the array node.
smithy-model/src/main/java/software/amazon/smithy/model/node/ArrayNode.java