add dynamic counter