Updated wordcount plugin