created an assertion for the number of queries that get executed