added "total" count of queries
formatting, added dom element around total number