Replace obsolete FlashBag::count() call with count(FlashBag::peekAll())