Made changes to enable sentiment based count

Also added code to store these values in Mongo DB.