define a [list 1 2 3]

echo [length $a]