People counter keeps counting

I solved the problem. I changed the dictance delay.