Maximum number of electrons in a subshell of an atom is determined by the following