def METHOD_NAME(self, status):
    """
    Custom method to get the number of associated plugin instances with a given
    execution status.
    """
    return self.plugin_instances.filter(status=status).count()