Getting GROUP_COUNT

Hi All.
Is there a way I can call GROUP_COUNT or something like it via an AMI command?
I have been looking but cant seem to find anything, so I thought I would put this question on the forum as see if there is a way I can do it, or if anyone has any suggestions etc.

Thanks,Jeremy

Support questions should be asked on support forums.

AMI treats functions the same as variables.