The number of reduced fractions $p/q$ with $1\le p\le q\le n$ is approximately $(3/\pi^2)n^2$ --- approximately, in the sense of asymptotically equal (the ratio of the two quantities approaches 1 as $n\to\infty$). So $\pi$ can be approximated by counting the number of reduced fractions $p/q$ with $1\le p\le q\le n$, dividing by $n^2$, taking the reciprocal, multiplying by 3, and taking the square root. For example, for $n=7$, the reduced fractions are $1/1,1/2,1/3,2/3,1/4,3/4,1/5,2/5,3/5,4/5,1/6,5/6,1/7,2/7,3/7,4/7,5/7,6/7$, 18 of them; what approximation does that give you for $\pi$?
Also, the number of squarefree naturals up to $n$ (meaning, naturals not divisible by the square of any prime) is asymptotically $(6/\pi^2)n^2$. So $\pi$ can be approximated by counting the number of squarefree naturals up to $n$, dividing by $n^2$, taking the reciprocal, multiplying by 6, and taking the square root. For example, for $n=30$, the squarefree numbers are $1,2,3,5,6,7,10,11,13,14,15,17,19,21,22,23,26,29,30$, 19 of them. What approximation do you get for $\pi$?