added word count functionality then persist the result in DB - second commit