title: Disqus get comment count for current post as a PHP variable
body: <p>I'm trying to get the comment count on a WordPress post as a PHP variable. </p>
  
  <p>For some reason comments aren't syncing properly between disqus and WordPress so get the comment count from WordPress locally isn't an option. </p>
  
  <p>Does anyone have any ideas about how to go about this? There's an API and PHP wrapper but I'd like to see if there's an easier way before I get stuck into the API.</p>
  
  <p>Thanks!</p>
  
  <p>PS I need as a PHP variable so posts can receive an rating based on likes, favourites and comments so getting it in JS isn't really an option.</p>
  
  <p>Thanks! </p>