bugfix

amended car/index to check if $counter is 0 before executing rest of
the code. This prevents the divide by 0 error.