Bourbaki marks this one as harder than the rest.
Let f be a real-valued function defined on a closed subset A of R. Let limsupx→a,x⩾af(x) [resp. limsupx→a,x⩽af(x)] denote the upper limit of f(x) as x tends to a point a∈A while remaining in A∩[a,+∞] (resp. A∩[−∞,a]). Show that the set of points a∈A such that limsupx→a,x≥af(x)=limsupx→a,x≤af(x) is countable. [Prove that, for each pair of rational numbers p,q such that p<q, the set Gp,q of points a∈A such that
x→a,x≥alimsupf(x)≤p<q≤x→a,x≤alimsupf(x) is countable, by using Exercise 1 of § 2].