I have an existing OpenCV C++ tracking library, that can track multiple people at once. It uses multiple tracking techniques to detect and track people.
I also have tracker/counter libraries (Opencv c++) can count the tracked objects (people) and can easily produce CSV output.
My opencv c++ tracking library and counting library run on opencv c++ version 2.4 through 3.1(latest), compile on linux and Windows VC++. The windows version counter library has an additional .NET API for easy use in C# etc. And the counter library also has a built-in web server which can display live MJPEG counter cam video in HTML5 browsers, with admin and configuration features too.
*** So I think I have what you are looking for, right now! ***
Send me sample video, and I will demo my tracker and send back the processed video for you now. so you can see how it works on your input. I can also give you a live demo it using net-cams that show people.