Create a node in your data source tha twould maintain the count. Then,
on-load of the form, create a rule that would increment that count. You may
also want to persist the form at that point - if so, you'd need to write code
and make the form template full trust.
> I want to insert a control in infopath that will increase a number by one (1)
> each time the program (infopath) is opened.