$|A=\{a : f(a)=a\}|$ can be found by counting the number of intersections of $y=f(x)$ and $y=x$.
$|B=\{b : f(f(b))=b\}|$ can be found by counting the number of intersections of $y=f(x)$ and $y=a (a\in A)$.
But how can I find $|C=\{c : f(f(c))=f(c) \}|$ ?