def get_counting_line(line_orientation, frame_width, frame_height, line_position):
    """
    This function return the cordd of the counting line by the line position and the frame width and height.
    :param line_orientation: string of the orientation of the line.need to be top, bottom, left, right. example- if right - the right side it the outside.
    :param frame_width: the width of the frame
    :param frame_height: the height of the frame
    :param line_position: the position of the line in the frame (flout number)
    :return: corrdinates list of the area.
    """
    line_orientations_list = ['top', 'bottom', 'left', 'right']
    if line_orientation not in line_orientations_list:
        raise Exception('Invalid line position specified (options: top, bottom, left, right)')

    if line_orientation == 'top':
        counting_line_y = round(line_position * frame_height)
        return [(0, counting_line_y), (frame_width, counting_line_y)]
    elif line_orientation == 'bottom':
        counting_line_y = round(line_position * frame_height)
        return [(0, counting_line_y), (frame_width, counting_line_y)]
    elif line_orientation == 'left':
        counting_line_x = round(line_position * frame_width)
        return [(counting_line_x, 0), (counting_line_x, frame_height)]
    elif line_orientation == 'right':
        counting_line_x = round(line_position * frame_width)
        return [(counting_line_x, 0), (counting_line_x, frame_height)]