Effective atomic number of Ni in Ni(CO)x is 36. Thus, x=4 .
EAN=Effective atomic number
Z=Atomic number of the metal
X = number of electrons lost during the formation of metal ions from its atom.
Y = number of electrons donated by ligands.
The effective atomic number of the complex [Ni(CO)x] is 28−0+2x=36.
Hence, x=4