For Run length Calculation for Vay series