[bugfix] Invalid results count

There was invalid results count fetched when Doctrine's CountOutputWalker used.
CountOutputWalker is Query::HINT_CUSTOM_OUTPUT_WALKER, but not just the CustomTreeWalker.
So fixed it.
But it is better to test on some other Doctrine versions (not 2.3.3 one) before merge.