prototype for wordcount service