title: get most visited pages in sitecore by using Analytics's API
body: <p>I want to get most visited pages in sitecore by using Analytics's API .</p>
  
  <p>I am using below code to get this:</p>
  
  <pre><code>Sitecore.Analytics.Data.DataAccess.DataSets.VisitorDataSet.PagesDataTable pagesDataTable = new VisitorDataSet.PagesDataTable();
  
  var Count = pagesDataTable.Count(p =&gt; p.ItemId.ToString() == "{B0358D8A-A3B7-4D99-B123-78E7B1CA9F83}");
  </code></pre>
  
  <p>But its giving me <code>0</code> count all time . My Analytics database is enabled. I am not sure if am doing something wrong.</p>