WordPress File wp-includes/functions.php

get_num_queries()

Retrieve the number of database queries during the WordPress execution.