def METHOD_NAME(self):
    for resource in self.get_all_resources():
        resource_type_name = (
            resource._meta.verbose_name
            if hasattr(resource._meta, "verbose_name")
            else resource._meta.model_name
        )
        self.resource_type_counts[resource_type_name] += 1
        self.n_resources += 1
    self.n_ratings = Rating.objects.all().count()
    self.n_comments = ThreadedComment.objects.all().count()