Fix for enhancement request (Issue 27). Counting duplicate queries.

This fix is based in SQLog Middleware.

http://github.com/robhudson/django-debug-toolbar/issues#issue/27