I have this word counter plugin here:
merge(config.macros,{
wordCount: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
createTiddlyText(place,tiddler&&tiddler.text?tiddler.text.match(/\w+/g).length:"0");
}
}
});
And I would like to make it compatible with TiddlyWiki 5. I'm fine if it needs a few extra steps, as long as it works.