def count_successes(output_table):
    """Counts how many tests in table was successful, and how many was tested

    Parameters:
    output_table (list(TestResult)): List of test results to be counted

    Returns:
    (success_count, test_count): How many test were passed, how many was taken

    """

    success_count = sum(output.passed is True for output in output_table)
    test_count = len(output_table)
    return success_count, test_count