Update index.php

fewer "count" times