You probably already thought of this, but could you use file.size? Since the file size is directly correlated with amount of text in a note (including characters for formatting and links, etc), it may work relatively well.
Good luck. I think this would be useful if possible.
Thanks.