The MBTA is piloting real-time crowding info for some of the key bus routes ( 1, 15, 16, 22, 23, 31, 32, 109, and 110). They've installed counters on the front and rear doors to measure entries and exits. Pretty cool stuff.
https://www.mbta.com/projects/crowding-information-riders