'return a dict'

def status_count(self, project):

    result = dict()
    if (project not in self.projects):
        self._list_project()
    if (project not in self.projects):
        return result
    tablename = self._tablename(project)
    for (status, count) in self._execute(('SELECT    `status`,    count(1)    FROM    %s    GROUP    BY    `status`' % self.escape(tablename))):
        result[status] = count
    return result
