Fetch the list of cues in cue group through X++ code

Hi, Hope you are doing better,

I have a scenario where I need to loop though all the cues in a cuegroups (in AOT), by using this cues list I need to get the count in X++Code which is used for some reporting( not in EP)

I wonder if some have worked on the cues by writing a code to process the cues in a cue group, please you help will be appreciated,

Thanks in advance