Django N+1 query wrapper Example of simple wrapper to count the totall number of queries made by a function/endpoint.