0.7.3: Tersen count() logic. Test for any window like jQuery.isWindow does.