Added a count_characters modifier

It's supposed to function exactly as http://www.smarty.net/docsv2/en/language.modifier.count.characters.tpl