In an atom, the total number of electrons having quantum numbers n=4,ml=1 and ms=−1/2 is:
n=4,l=0,1,2,3
ml=1 (only in p,d and f-orbitals)
2 electrons in each orbital have ms=−12
Hence, total no. of electrons = 6