Cache ChannelStack count to reduce calculations