7 is the number of periods, or horizontal rows of elements, in the periodic table.