Hi there.
I have done people counting project at an entrance twice in last 3 months. I used raspberry pi both times. I have its data, I can show you results right now. I can test your video right now and show you the results. It can be customized for your use if you need any special conditions.
I am waiting for your message, please just get in touch to see the results and let me help you solve your problem. Thanks.