Number of channels is now part of xmi_input

Lots of changes because of this