Fixed #22369 -- Added count parameter to assertTemplateUsed