# How do you know how many critical points a function has?

It can be found by counting the number of x-values in the domain of the function such that $f '$ is zero and $f '$ is undefined.