Upgrade subject to access all content

The derivative of a function $g$ is given by $g'(x) = \cos \left( {{{\left( {x - \frac{\pi }{2}} \right)}^x}} \right)$. How many maxima does $g(x)$ have on the interval $[1.8, 3.7]$?

$2$

$3$

$5$

$6$