I have the following simple ksh code:

```
 MY_LIST=first,second,third
 NUM_IN_LIST=` echo $MY_LIST | sed s"/,/ /g" | wc -w `
 print $NUM_IN_LIST
 3
 [[ $NUM_IN_LIST = 3 ]] && print match

 but I dont get the match print -:(

```

maybe because some spaces?

can I get some other suggestion to count and print the words in $MY\_LIST ? (after remove the "," seperator)