Count the number of values in an array

hi there,

i,ve tried to count the values in an array with

$modulen = array({ex_md});
{GEKOPPELDE_MOD} = (array_count_values($modulen));

and show the result in a field
but i can’t get it right.
anny suggestions?