add rowCount method