In other words - Is there an explicit analytical formula for the prime-counting function $\pi(n)$?
Yes there are many. If it's about computation time one would use boundaries, resulting from the prime number theorem.
If it's about easyness one may use Wilsons theorem to get to an anaytical expression or other theorems, for example
$$\pi(n) = \sum_{j=1}^{n}\left\lfloor\cos^2\pi\frac{(n-1)!+1}{n}\right\rfloor,$$
where $\lfloor\cdot\rfloor$ is the floor function. Basically the whole function inside the sum is an indicator function, that returns $1$ if $n$ is prime and $0$ otherwise.
If it's about beauty, than it's this formula:
$$\pi(x)=R(x)-\sum_{\rho}R(x^\rho),$$
where $$R(x) := \sum_{n=1}^{\infty}\frac{\mu(n)}{n}\operatorname{li}(x^{1/n}),$$
$\mu$ the Möbius-function, $\operatorname{li}$ the logarithmic integral and $\rho$ are all the zeros of the $\zeta$-function.