The number that remains unchanged during photosynthesis is the number of carbon atoms.
During photosynthesis, carbon dioxide molecules are taken in and used to form glucose, but the total number of carbon atoms involved in the process remains constant.