Ver original$counter = 0;function wrapper_mysql_query( $query, $link = null ) { global $counter; $counter ++; return mysql_query( $query, $link );}