entityID doesn't update in a group copy

Please update your profile, if you are using ruby means you are working with SketchUp Pro. Also write your code using the right sintax ([How to] Post correctly formatted and colorized code on the forum?)

Regarding your post, what do you really need? The amount of group instances or the amount of group definitions?