in reply to DBI::rows

From reading the DBI docs on this matter, it sounds like the best way to not have to count the rows is to switch to a DBMS that supports this function. Or on a more serious note, change your SQL to SELECT count( name ) FROM people WHERE l_name LIKE 'B%';