How to find the number of roots of the equation $4\cos(e^x)=2^x+2^{-x}$?
Generally, for these kinds of problems I used to draw the graphs of the functions on either sides of the equation. Then find the number of points where they intersect each other, and hence the number of roots.
But here, I face difficulty in drawing both the graphs of the functions (to actual scale) to determine the number of roots. I was able to somehow draw the graphs, but I don't know to draw them accurate enough to determine the number of roots. So,I used graphing calculator to determine the graphs and hence the number of roots as follows:
Clearly, the number of roots is $4$.
Is there any other method of finding the number of roots of the given equation? If you are using the graphical method, please give some guidance on how to plot the graphs of such complicated functions (eg. $4\cos (e^x)$) accurate enough to determine the number of intersection points.

Define $$ f(x) = 2^x-2^{-x} $$ $$ g(x) = 4 \cdot cos(e^x) $$
Note $f$ is convex and symmetric around the $y$-axis. It is thus shaped like a parabola. Futhermore $$ 4 \leq g(x) \leq 4 \quad \forall x $$ So only when $f(x) \leq 4$ can the curves intersect. Solving $f(x) = 4$ gives $$ x_1 = \log_{2} (2-\sqrt{3}), x_2 = \log_{2} (2+\sqrt{3}) $$ We can now calculate the number of periods of $g(x)$ in this interval. $$ \frac{e^{x_2} - e^{x_1}}{2 \pi} \approx 1.04 $$ Meaning the function undergoes a little bit more than 1 period of the the cosine. You can deduce the shape of $g(x)$ in this interval by for example calculating $g'(x_1)$ and seeing it will first decrease. Since $$ f(x_2) > g(x_2) $$ we have at least 2 roots, namely the 2 rightmost points of intersection.
You can show the existence of the first 2 points of intersection with a little heuristic, try a few values, for example, $0$ and show that $f(0) < g(0)$. Since $g(x_1) < f(x_1)$ this means another point of intersection lies somewhere between $x = x_1$ and $x = 0$. This proves the existence of the left most point of intersection. And because $g'(0) < 0$, $g(x)$ is still decreasing towards $-4$ and will intersect $f(x)$ one more time.