CO has same electrons as or the ion that is isoelectronic with CO is
CO and CN− areisoelectronic.
Co=6+8=14 and CN− =6+7+1=14