getcharcount ('<window name>', '<component name>')
Return the number of characters present in the component identified by the <component name>.
| number | of characters |
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/text.c
With respect to gedit
getcharcount ('gedit', 'txt0')
This will return the number of characters in the file presently open.