While crude and technically incorrect, I like what you’ve done. What you’re doing is basically finding the number of circles in the rectangle. While that approach has mathematical errors (because you can’t “fit” circles exactly in a rectangle), as an approximation it’s OK enough in this case.
Formally, your answer will always be \frac{1}{\pi r^2}, while the correct answer for a circle with radius r and rectangle dimensions p and q respectively is