Hi iancoote,
I have whipped up a plugin for you that should do the trick.
Plugin Usage:
Enter in as many fields/strings you would like to count the
character of and seperate each with a pipe.
This plugin is to be used inside a channel tag pair.
{exp:channel:entries channel="xxx"}
{exp:character_counter data="var1|var2|var3"}
{/exp:channel:entries}
You can also use any expression engine fields you
have access too.
{exp:channel:entries channel="xxx"}
{exp:character_counter data="{url_title}|{title}"}
{/exp:channel:entries}
There is an optional parameter to tell the plugin not to count spaces, this is true by default.
Optional Parameter Usage:
{exp:character_counter data="{member_id}|{username}" count_spaces="false"}
Usage:
{exp:channel:entries dynamic="no" channel="blog"}
{if {exp:character_counter data="{member_id}|{username}"} > 4}
More than 4 characters
{/if}
{/exp:channel:entries}
Have fun!
Expression Engine just like any CMS andcant cater to every need but luckily expression engine is very flexible and easily extended, starting with plugin development, great info
Here in the plugin development docs
Hope this helps.