This PR adds the database query count expectation helper that I used to catch N+1 issues in tests. In the video I showed how I can assert the query count for a page and then fix the code with eager loading or withCount to make the test pass.
You'll be taken to Github to complete your purchase.