def get_project_count():
 bugs = mysite.search.models.Bug.all_bugs.all()
 return bugs.values(u'project').distinct().count()

def get_project_count ( ) : bugs = mysite . search . models . Bug . all_bugs . all ( ) return bugs . values ( u'project' ) . distinct ( ) . count ( )
retrieve the number of projects currently indexed .