Determine also the number of unpaired electrons I the 3d orbital of an atom of X

Hund's rule says that the three electrons will be unpaired until there are five. After that pairing will occur. The answer to your question is 3.