A wordcount class