fn waiting_for(tasks: &[Task], uid: &str) -> usize
How many open tasks wait for uid: they stop waiting once it is an appointment.
uid