Fixed #22369 -- Added count parameter to assertTemplateUsed

Added a new parameter, count, to assertTemplateUsed to facilitate asserting that a template was rendered a specific number of times. The default value for count is None, in which case assertTemplateUsed behaves exactly as it did previously, making everything backwards compatible.