I want to do a project on smart garage car parking having a two way exit .If 1st car comes in it opens the garage and counts in increasing order ,if cars leaves it counts in decreasing order . if It counts the cars up to 50, the garage will not open again ... any help on the programing ? Thanks in advance