def get_stats(dist, number_of_vulnerabilities):
    """
    Get statistics about number of entries in dictionary
    Create meaningful output
    :param dist: reviewed dictionary
    :param number_of_vulnerabilities: number of reviewed vulnerabilities
    :return: Statistics in printable form
    """

    result = "Statistics: "

    number_of_cases = 0

    for values in dist.values():
        number_of_cases += len(values)

    if number_of_vulnerabilities > 1:
        result += str(number_of_vulnerabilities)
        result += " types of vulnerabilities were reviewed, "
    else:
        return result + " 0 cases discovered, nothing to do"

    if number_of_cases > 0:
        result += str(number_of_cases)
        result += " security events were written to the output file."
    else:
        result += "nothing was written to the output file."

    return result