Measuring space occupancy