Update stats when learners are added/removed.
Extract _update_header method.