Use Module:NUMBEROF

Full Documentation at en:Template:NUMBEROF.

First parameter: articles, pages, edits, users, activeusers, admins or files

To show the number of articles of the French Wikipedia in format raw:

  • {{NUMBEROF|articles|fr}} → 2649587

To show the number of pages on fy in format raw:

  • {{NUMBEROF|pages|fy}} → 166244

To show the number of pages on fy:

  • {{NUMBEROF|pages|fy|N}} → 166.244