def number_of_compliance_plugins(report_host):
    """
    Function returns number of reported compliance plugins for given target.
    :param report_host: report host element
    :return: number of reported compliance plugins
    """
    compliance_plugin_counter = 0
    for report_item in report_host.findall('ReportItem'):
        compliance = report_item.find('compliance')
        if compliance is not None:
            if compliance.text == 'true':
                compliance_plugin_counter += 1
    return compliance_plugin_counter
