How to add a dynamic value based on the number of submissions?