Template:Count pages/doc

Usage
Meta template to count pages following a numerically incremental naming pattern, like archive pages. Can count up to 999, optimized to use at most 18 #ifexist checks, and somewhat optimized for typical page distributions (see Benford's law).

This template can be substituted.

Examples

 * → Note the space after "Archive"!
 * → 4
 * → Administrators' noticeboard/Archive
 * → 4
 * → Administrators' noticeboard/Archive