Counting square free numbers co-prime to $m$
What follows does not match the question exactly but may be interesting to know.
Observe that the Dirichlet series of the indicator function of squarefree numbers is $$L(s) = \prod_p \left(1+\frac{1}{p^s}\right).$$
If these are supposed to be co-prime with $m$ we get $$L(s) = \prod_{p|m} \frac{1}{1+\frac{1}{p^s}} \prod_p \left(1+\frac{1}{p^s}\right).$$
This is $$\prod_{p|m} \frac{1}{1+\frac{1}{p^s}} \prod_p \frac{1-1/p^{2s}}{1-1/p^s} \\ = \prod_{p|m} \frac{1}{1+\frac{1}{p^s}} \frac{\zeta(s)}{\zeta(2s)}.$$
With the dominant pole at $s=1$ being simple we have by the Wiener-Ikehara theorem for the number of squarefree positive integers co-prime to $m$ the asymptotic
$$\sum_{n\le x, \; \gcd(m,n)=1, \; p^2\not\mid n} 1 \sim \prod_{p|m} \frac{1}{1+\frac{1}{p}} \frac{1}{\zeta(2)} x \\ = \frac{6}{\pi^2} x \prod_{p|m} \frac{1}{1+\frac{1}{p}} \\ = \frac{6}{\pi^2} x \prod_{p|m} \frac{p}{p+1}.$$
This approximation is remarkably accurate. For example it gives for $x=3000$ and $m=6$ the value $911.8906524$ while the correct answer is $911.$ For $x=4000$ and $m=10$ it gives $1350.949114$ with the correct answer being $1349.$ Finally for $x=5000$ and $m=30$ we get $1266.514795$ with the correct answer being $1267.$