Update StatCounter.php

Simplified code