Eh, it works I guess. You could expand it alot more by using a multi-line edit box for people to count essays, etc. Also, I think it would look cooler changing the length not on sclick, but on edit of the text box itself.
did -ra cc 5 $len( $+ $did(1).text $+ )
Could just be
did -ra cc 5 $len($did(1))
Don't see why you put the $+ in there :x.