Mr. Thibaut Lunet offers a Master thesis on the topic:
Crowdimax: Real-Time Audience Counting in a Large Lecture Hall with Low-Cost BLE Sensors
If you are interested, you can contact Mr. Thibaut Lunet by email.