This is the chunk of code. I've noted which line is #42. Thanks for taking some time with this.
Code:
reset($queries_list);
while (!$queries_list->EOF) {
// if requested, show recordcounts at end of descriptions of each entry
// This could slow things down considerably, so use sparingly !!!!
if ($display_count=='true' || $display_count ==true ) { // if it's literal 'true' or logical true
$count_array = $db->Execute(parsed_query_string($queries_list->fields['query_string']) ); //---------- line 42
$count = $count_array->RecordCount();
}