Update Stats.php

Not sure if this code will work because I have no way of testing it.