How many instances are created after called in a template function/class ?