I'm looking for explicit upper bounds on the number of primes up to the square $m=p_n^2$ of the $n^\text{th}$ prime number.
Such estimates can rely on the knowledge of the exact number of primes up to $\sqrt{m}$, which is $n$. Since every composite number less than $m$ has a prime factor smaller than ${p_n}$, from the sieving perspective, the $n-1$ primes less than ${p_{n}}$ actually determine the primes between ${p_n}$ and $p_n^2$. Two very similar questions could be formulated as follows:
knowing the exact number of primes less than or equal to a given natural number ${q}$, find an explicit upper bound on the number of primes up to ${q^2}$;
knowing the exact number of primes less than a given natural number ${q}$, find an explicit upper bound on the number of primes in the interval $\mathopen]q,{q^2}\mathclose[$.
Edit: the goal would be, of course, to use the knowledge $\pi(q)=n$ to obtain sharper upper bound estimates on $\pi(q^2)$ than those obtainable without this information.