How to attach the number of linear pattern instances to a note?

I want my note to get automatically changed whenever the number of linear pattern (or circular pattern) instances change in design of the solid part.Please Help.

SolidworksDrawings And Detailing