Calculate the maximum number of group items. This will look in both the bone and curve groups. So for example, if there is a curve group with 5 items, while other groups have only 2 or 3 items, this method will return 5.