fn problem_count<F: Fn(&Analytics) -> Vec<(ProblemType, Vec<(Time, usize)>)>>( ctx: &EventCtx<'_>, app: &App, title: &str, get_data: F, opts: &ProblemOptions) -> Widget