What is the code of each location and the number of documents in that location?
select location_code, count(*) from document_locations group by location_code