Use QUnit to track total number of tests

As of jquery/qunit#553, QUnit will now provide the total number of tests
to be run in their QUnit.begin callback.  This commit will use that
functionality if available, otherwise it falls back to using the current
manual tracking method with QUnit.testStart

fixes #5