How to display on my number of free parking on 4 digit 7segment using IR obstacl

is it the right way i've inserted the count?

isObstacle = digitalRead(sensorA1);
if (isObstacle == LOW)
{
Serial.println("OBSTACLE!!, OBSTACLE!!");
digitalWrite(LEDA11, HIGH);
count--;
}
else
{
Serial.println("clear");
digitalWrite(LEDA11,LOW);
count++ ;
}
if (isObstacle == LOW)
{
Serial.println("OBSTACLE!!, OBSTACLE!!");
digitalWrite(LEDA12, LOW);
count--;
;
}
else
{
Serial.println("clear");
digitalWrite(LEDA12,HIGH);
count++;
}