in reply to DBI query count?

another approach, if checking the logs or working around come out to be too much time consumptive for you, might be found in the show status; query to the database and grepping out the values you're looking for.
use vars 'QUERY_COUNT'; ... my $res = $dbh->selectrow_hashref("show status"); $QUERY_COUNT += ($res->{'Questions'} - $QUERY_COUNT);
maybe that's a silly suggestion, but there are quite trivial ways of getting metadata from a database.

language is a virus from outer space.