Have the database count, avoid rowCount().