Word Count rest api