Get the number of channels in the input generators.

def num_channels(self):
        """
        Get the number of channels in the input generators.
        """
        if(self.inspect_value('index') is None):
            if(len(self.generators)>0):
                return self.generators[0].num_channels()
            return 0

        return self.get_current_generator().num_channels()