Fix: initializes row counter