copy script that count textline.