Refactor num_recent_unique and started on CLI