I recall in Windows 2000, the "styles" used to be that when you apply a heading style, the heading are automatically numbered,
i.e., the first Heading1 Heading would be numbered 1,
the 3rd heading2 under the first heading1 would be numbered 1.3, Fifth heading1's third heading2's...