finished usecase wordcount