added number of applications to template