src/services/SitemapService.php
private function _getPageCount (Element $type, $id)
	{
		/** @var EntryQuery|CategoryQuery $criteria */
		$criteria = $type::find();
		$this->_setCriteriaIdByType($criteria, $type, $id);

		$sitemapLimit = Seo::$i->getSettings()->sitemapLimit;

		return ceil($criteria->count() / $sitemapLimit);
	}
private function _getPageCount (Element $type, $id)
	{
		/** @var EntryQuery|CategoryQuery $criteria */
		$criteria = $type::find();
		$this->_setCriteriaIdByType($criteria, $type, $id);

		$sitemapLimit = Seo::$i->getSettings()->sitemapLimit;

		return ceil($criteria->count() / $sitemapLimit);
	}
Get's the page count for the given element type and group / section ID

@param Element $type - The Element Type
@param int     $id - The section or group ID

@return float