This template count the number of pages in {{{1}}}. Using 1999 as an example, it counts

and sums them up, giving 520.

Other subcategories are ignored.