Get number of channels in category

Hello, pretty simple, trying to do the above.

if I have the CategoryChannel object, I've tried CategoryChannel.children.size, but this doesn't work. I've messed around with a couple of other solutions that didn't work either.
Was this page helpful?