Fixed assignment count reset issue
added sharing conditional check to decrement the public collection count
Merge pull request #359 from sheebans/master

Fixed assignment count reset issue