Create counting.cpp

this code can count single person coming in or going out. 
it works sometimes when more than one people entering or exiting.