I would like to have user can see where are they come and how many comment and make total group by country:

How do I make this work?

Code:
 google.load('visualization', '1', {'packages': ['geochart']});
 google.setOnLoadCallback(drawRegionsMap);

  function drawRegionsMap() {
    var data = google.visualization.arrayToDataTable([
      ['Country', 'Politics'],
      <?php 
      $sql = mysql_query("SELECT country, count(*) as total FROM comments WHERE userid = '$userid' GROUP BY country");
      echo $row['total']
      ?>
    ]);

    var options = {'backgroundColor': '#E9F6FD'};

    var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
    chart.draw(data, options);
};
Thank you for the help.