def get_stats(ab):
    """
    (1) Search for the line containing 'Connection Times (ms)'
    (2) Save the statistics that appear on the following 5 lines
    """
    match = "Connection Times (ms)"

    for line in ab:
        i = ab.index(line)
        check = line.strip()

        if check == match:
            # skip the first two lines because we only want to data
            return ab[i+2:i+6]

    # this means we couldn't find any statistics
    raise Exception("ab statistics not found")