You can just query the database with a count of how many users have users.last_visit between two given dates.