def extract_text_length(image_obj):
    """
    Extracts the text length from the bottom right 11 pixels
    
    Args:
        image_obj: The image object of the PIL image.
        
    Returns:
        text_length: The text length of the supplied data
    """        
    print("\nExtracting text length")
    img_width, img_height = image_obj.size

    bit_string = ''
    for x in range(img_width-1, img_width-12, -1):
        pixel = image_obj.getpixel((x, img_height-1))

        for color in pixel:
            bit_extracted = color & 1
            print(bit_extracted, end='')
            bit_string += str(bit_extracted)

    print('')
    bit_string = bit_string[:33]
    print(bit_string)
    text_length = int(bit_string, 2)
    return text_length