code: def status_count(self, project):
          '''
          return a dict
          '''
          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 resulf status_count(self, project):
          '''
          return a dict
          '''
          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
docs: return a dict