That's what firepages has done there. If you want the side number and count separate, a simple division is all that's required in the print.
So like so:
print '<table><tr><th>Side</th><th>Roll Count</th></tr>';
for($i=1; $i<=$sides; $i+=1)
printf('<tr><td>%d</td><td>%d</td></tr>', $i, $results[$i]);
Wait you want a two dimensional array? What exactly is to be in it?