add saved query count to queries controller