added a filter to update the project count based on perms

Resolves http://bugs.web2project.net/view.php?id=1631
Merge remote-tracking branch 'upstream/master'