New method numberOfRows(), updated to do list