I would create a counter to track how many machines are in the group. Then create a formula that uses a global variable that gets incremented each time it is called. Put this formula in the group footer. Then create another formula which simply prints the global variable.
The first formula might be:
Global NumberVar NumGroups;
NumGroups := NumGroups + 1;