How can I determine the size of a metafields list?

Although this has been solved, here is a simpler solution:

Size of Metafield list = {{ product.metafields.products.related.value | size }}