try,
echo (int)($fakecount * 100 / $totalcount + .5);
This works because adding 0.5 increases the integer part by 1 if the decimal part is >= .5
or,
round ($fakecount * 100 / $totalcount);
Note that, I'm doing the multiplication by 100 before the division to better preserve the precision.