Why did the Liquid array .size function stop working in my customized theme?

Por alguna extraña razón size deja de funcionar en ocasiones.

Lo que hice fue algo manual.

{%- assign count = 0 -%}
{%- for media in metaobject.media.value -%}
  {%- assign mediaCount = mediaCount | plus: 1 -%}
{%- endfor -%}

Count: {{ count }}