How many documents correspond with each project id?
select project_id, count(*) from documents group by project_id