remove numberOfRows private member because it only used in UpdateRowCount