generalized number of channels