def count_all_entries(self):
    catalog = getToolByName(self.context, 'portal_catalog')
    brains = catalog(object_provides=IBlogEntry.__identifier__)
    return len(brains)
def count_all_entries(self):
    catalog = getToolByName(self.context, 'portal_catalog')
    brains = catalog(object_provides=IBlogEntry.__identifier__)
    return len(brains)