How many documents have the status code done?
create table documents (document_status_code varchar, PRIMARY KEY (document_status_code))
select count(*) from documents where document_status_code = "done"