in reply to Counting Characters

Would length work for you? :)
length EXPR length Returns the length in characters of the value of EXPR. If EXPR is omitted, returns length of $_.