Measuring mobility with entry and exit events