def METHOD_NAME(self, feature, category):
    if isinstance(category, Category):
        category = category.category
    try:
        METHOD_NAME = FeatureCategory.objects.get(user=self.user, feed=self.feed, feature=feature, category=category)
    except FeatureCategory.DoesNotExist:
        return 0
    else:
        return float(METHOD_NAME.count)