You can get the number of queries ever executed by calling.
show session status like "Queries";
Call this at the beginning and at the end of page creation, and then you can see how many queries there have been. Don't forget that this command itself is also counted as one.