Crowd detection and occupancy estimation through indirect environmental measurements