#file: countargs
countargs() {
echo $#
}
result=`countargs uno dos tres`
echo $result

