bug fixes related to count update upon deletion
Merge pull request #174 from saumishr/master

bug fixes related to count update upon deletion