Why does the number of electrons change as a result of photoelectric emission ?
Since the electrons are attracted to the positive nuclei of the metal atoms , they normally stay inside the metal and require energy to leave it ; this is called the " work function " of the metal .