au.countChannelsInRanges(channels, separator=';')
CASA <3>: au.countChannelsInRanges('5~20;30~40;100~109') Out[3]: [16, 11, 10]