WordPress 2.0.0 Hooks, Functions, Classes and Methods
Page 9

get_num_queries()

Retrieve the number of database queries during the WordPress execution.