I've posted a method to count characters here:
For more information, see the wiki Searching the Forum for Answers section.