def count_above_below(lst: list, val: int) -> tuple:
    """
    Given a list of integers and a threshold, count the numer of integers in the list
        that are above and below the threshold (non inclusive).

    Args:
        lst (list): list of integers
        val (int): the threshold

    Returns:
        tuple: (number below, number above)
    """
    below = 0
    above = 0
    for i in lst:
        if i < val:
            below += 1
        elif i > val:
            above += 1

    return (below, above)