<div class="large-12 columns">
  	Find the total number of rating for each restaurant, for each rater. That is, the data should be 
grouped by the restaurant, the specific raters and the numeric ratings they have received.
	<h1><small>Total number of rating for each restaurant</small></h1>
	<table class="large-12 columns">
		<tr>
			<td>Rater</td>
			<td>Restaurant</td>
			<td>Number of Ratings</td>
		</tr>
		<?php 
foreach ($query_f_results as $result) {
    ?>
		<tr>
			<td><?php 
    echo get_rater_info($result['userid'])['name'];
    ?>
			</td>
			<td><?php 
    echo $result['name'];
    ?>
			</td>
			<td><?php 
    echo $result['count'];
    ?>
			</td>
		</tr>
		<?php 
}
?>
	</table>
<?php

require_once 'model.php';
$userid = $_GET['userid'];
$raterInfo = get_rater_info($userid);
$raterReviewCount = get_rater_review_count($userid);
$raterReviews = get_rater_reviews($userid);
if (!$raterReviewCount) {
    $raterReviewCount = 0;
}
require 'templates/raterProfile.php';