In order to accurately calculate the number of pages of the Internet resource to be automatically generated site map (Sitemap). If your site is relatively big, you can take advantage of a special online service to generate a site map and counting the pages XML Sitemaps.com (http://www.xml-sitemaps.com).
To do this, go to the specified resource, which by default opens on the tab “Free Online Sitemap Generator” that is a free online service. Enter the URL (Internet address) of your website in the empty field and hit the "Start" button. After some time, the service will generate a map of your site.
After the completion of the service, you will be redirected to pagesfrom displaying the detail map of the site. In it you will find information on the number of pages on the website, a broken link, the contents of the XML file and the link to the file with the site map. Use this link to load the site map in the root directory of your site.
If you create your websites with common CMS (content management system), you can use specially designed plug-ins when drawing up a site map and counting the number of pages. Particularly for common cms Joomla there is a great module SEF Service Map that allows you to generate a site map and work with them. System Word Press has a special plugin for generating Sitemap that'll need to install.