Implement per-project statistics

Change-Id: Ie076b23f69f054e0c55a794b449b3acd190dc61f