First I know similar questions have been asked about counting d-electrons.
However, my question is about the electrons in the 4d orbital. For example if I have CdS. The cadmium has a charge of +2. So does this affect the number of d-electrons?
Would it be 10 d-electrons as the 2 extra have been removed from the 5s orbital?
Also is the electron configuration of Cd in CdS:
[Kr] 5s2 4d10
or is it: