in reply to Perl - MySQL query question

you probably want to combine your two queries into a single one:

SELECT rent_car,count(rent_car) FROM owner GROUP BY rent_car