Or Bluetooth. There are some problems (like MAC randomization) to get a real tracking with BLE, but to have a rough estimation, it's a good technique.
And you can do it with just an ESP32.
The idea is to scan every minutes for BLE MAC Addresses and send to a backend.
On the backend you can identify what is the manufacturer of every MAC addresses and make some correlation.
A very simple idea is to filter only the phone MAC addresses and use as presence counter estimator; it's a bit unlikely that a university student will have more than one phone.
A better method would try to correlate not random MAC addresses (headphones, BLE trackers, wearebles, etc) that are frequently together and mark as a single person.