Feature summary:
In [[Special:Namespaceinfo]], it would be useful to know how many pages there are in each namespace.
There is a magic word {{PAGESINNAMESPACE}} but this is enabled by $wgAllowSlowParserFunctions which is false by default. This is old Technical-Debt that could be calculated more easily with some back-end changes; see T226667: Register namespaces in the database and T228559: Remove $wgAllowSlowParserFunctions.
This (or similar) could be still called here, even if the numbers are only updated periodically (e.g. once every 24 hours) to give a ballpark estimate.
There was an older suggestion to include this information in Special:Statistics, (T228554: Add pages per namespace counts to Special:Statistics) but this has been merged here since it seems to make more sense in Special:NamespaceInfo, which was fixed in 2020 with T263513: Create a Special:NamespaceInfo page, so didn't exist in 2019 when T228554 was filed.