The script Hammer gave you will increase %Total.Query.Count every time a query window is opened. Close all open query windows and msg yourself and it will increase %Total.Query.Count by 1. If the query window is already open and you recieve a message %Total.Query.Count won't increase.