Modify count_by and count_all to support soft deletes.
Merge pull request #148 from itguy614/master

Modify count_by and count_all to support soft deletes.