Add counter to monitor usage of each template