Project scoping and counts

Fixes #154