Make handling of corner case (scroll at bottom and remove row) clearer in updateRowCount.