properly update project count (fixes #68)