imc: validate channel count