Generalized if count goto line else open below