Convert occupancy to number