This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] For $n=4$, $|m_l|=1$ (i.e. $m_l=\pm1$) occurs in the $p$, $d$ and $f$ subshells. Each subshell gives 2 orbitals ($m_l=+1,-1$), each with one electron of $m_s=-\frac12$: $3\times2=6$. Answer: 6.