Fix row numbering

The variable `_counter['row_counter']` wasn't declared in the reimplementation of `_tableOpen()` which means that row numbers were continuing from previous tables and that header row had the class `row` instead of `row0` which was breaking some templates.