When dealing with Shopify list-type metafields, you may want to get the number of items stored in the Liquid code at any one time. To do so, use the ".count" property instead of the ".size" property that is available for normal array-type objects.
Get the number of elements in a list-type meta field using .count instead of .size

