The Instance Table functions within the Repeating Instrument format within REDCap. So everything related to instances of the repeating instrument can be used in this context.
Option 1: A proxy for how many instances of your Daily Treatment form have been submitted could be to use the [last-instance] smart variable where if you have 3 instances [last-instance] would be 3. This does not count the instances per se, but just says 'what is the number assigned to the last instance?'. (Example: Perhaps 1,2,3,4 instances were entered and then #2 was deleted so you really only have 3 instances, but [last-instance] would give you 4)
Option 2: If you actually want to count the instances, you can make a hidden helper field on your instrument that equals 1:
Open text field called [treatmentformcount] where @DEFAULT='1'.
Then build a calc like this: [aggregate-sum:treatmentformcount:record-name]
to count the number of fields that exist which should tell you the true number of instances per record for the