fixed row counting for multiline header